mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-24 06:34:18 +01:00
6 lines
153 B
TypeScript
6 lines
153 B
TypeScript
export async function fetchJSON<Type>(url: string) {
|
|
const response = await fetch(url);
|
|
const json = await response.json();
|
|
return json as Type;
|
|
}
|