UNPKG

tsuite

Version:

A collection of useful utility functions, All fully typed and documented

16 lines 467 B
//#region src/effetch.d.ts type EffetchOptions = RequestInit & { /** Primarily for SvelteKit's load function */ event?: { fetch: typeof fetch; }; responseType?: "json" | "text"; }; declare function effetch<T>(input: RequestInfo | URL, init?: EffetchOptions & { responseType?: "json"; }): Promise<T>; declare function effetch(input: RequestInfo | URL, init: EffetchOptions & { responseType: "text"; }): Promise<string>; //#endregion export { effetch };