import type { $Fetch, SearchParameters } from 'ofetch'; export async function fetchWithRepo( fetcher: $Fetch, url: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' = 'GET', body?: any, params?: SearchParameters ): Promise { return await fetcher(url, { method, body, params }); }