// The client's API calls are invoked in a node context with node-fetch // (tests, CLI invocation) and in the browser context with fetch (Replicache). // The node-fetch and fetch types are not compatible, so we define a new type // for the subset of what we need here. export type FetchResponse = { status: number; text: () => Promise; }; export type SimpleFetch = ( method: string, url: string, body: string | null, headers: Record, ) => Promise;