FetchLike: (
input: string,
init?: { body: string; headers: Record<string, string>; method: string },
) => Promise<{ json: () => Promise<unknown>; ok: boolean; status: number }>
Type Declaration
- (
input: string,
init?: { body: string; headers: Record<string, string>; method: string },
): Promise<{ json: () => Promise<unknown>; ok: boolean; status: number }> Parameters
- input: string
Optionalinit: { body: string; headers: Record<string, string>; method: string }
Returns Promise<{ json: () => Promise<unknown>; ok: boolean; status: number }>
Injectable
fetch, so the client runs under a plain node test.