You're on assignment part 2/2 for this lesson.

const issueURL: string = 'https://api.boot.dev/v1/courses_rest_api/learn-http/issues'
const issues = await getData<Issue[]>(issueURL)
logIssues(issues)
async function getData<T>(url: string): Promise<T> {
const apiKey = generateKey()
const response = await fetch(url, {
method: 'GET',
mode: 'cors',
headers: {
'X-API-Key': apiKey,
'Content-Type': 'application/json'
}
})
return response.json()
}