fetch-mock-cache
Version:
Caching mock fetch implementation for all runtimes and frameworks.
15 lines (14 loc) • 418 B
TypeScript
import type { SerializedBody } from "./body.js";
export interface FMCCacheContent {
request: {
url: string;
headers?: Record<string, string | string[]>;
method?: RequestInit["method"];
} & (SerializedBody | {});
response: {
ok: boolean;
status: number;
statusText: string;
headers: Record<string, string | string[]>;
} & (SerializedBody | {});
}