UNPKG

@lightningkite/lightning-server-simplified

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