export async function fetchJSON(url: string) { const response = await fetch(url); const json = await response.json(); return json as Type; }