@whatwg-node/node-fetch
Version:
Fetch API implementation for Node
4 lines (3 loc) • 329 B
TypeScript
import { PonyfillRequest } from './Request.js';
import { PonyfillResponse } from './Response.js';
export declare function createFetchUndici(getGlobalDispatcher: () => import('undici').Dispatcher): <TResponseJSON = any, TRequestJSON = any>(fetchRequest: PonyfillRequest<TRequestJSON>) => Promise<PonyfillResponse<TResponseJSON>>;