Files
blitzkit/packages/core/src/api/fetchJSON.ts
T

5 lines
153 B
TypeScript
Raw Normal View History

2026-09-22 16:38:30 -05:00
export async function fetchJSON<Type>(url: string) {
const response = await fetch(url);
const json = await response.json();
return json as Type;
}