UNPKG

@lightningkite/lightning-server-simplified

Version:
11 lines (9 loc) 266 B
export type Method = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; export type HeaderCalculator = () => | Promise<Record<string, string>> | Record<string, string>; export type Fetcher = <Body, T>( path: string, method: Method, body?: Body ) => Promise<T>;