UNPKG

457 BTypeScriptView Raw
1import { RequestInit, Response } from "node-fetch";
2export interface HttpClient {
3 request<T>(url: string, options: RequestInit): Promise<Response & {
4 json(): Promise<T>;
5 }>;
6}
7export declare function createHttpClient(): HttpClient;
8export declare class NodeFetchHttpClient implements HttpClient {
9 request<T>(url: string, options: RequestInit): Promise<Response & {
10 json(): Promise<T>;
11 }>;
12}
13//# sourceMappingURL=http.d.ts.map
\No newline at end of file