UNPKG

@jjdenhertog/ai-driven-development

Version:

AI-driven development workflow with learning capabilities for Claude

8 lines (7 loc) 226 B
export async function fetchJson<T>(url: string): Promise<T> { const response = await fetch(url) if (!response.ok) { throw new Error(`Failed to fetch: ${response.statusText}`) } return response.json() }