import { fetch } from './fetch'; export const fetchJson = async (input: RequestInfo | URL, init?: RequestInit): Promise => { const response = await fetch(input, { ...init, headers: { 'Content-Type': 'application/json', ...init?.headers, }, }); return response.json(); };