UNPKG

@whatwg-node/node-fetch

Version:

Fetch API implementation for Node

4 lines (3 loc) 321 B
import { PonyfillRequest, RequestPonyfillInit } from './Request.js'; import { PonyfillResponse } from './Response.js'; export declare function fetchPonyfill<TResponseJSON = any, TRequestJSON = any>(info: string | PonyfillRequest<TRequestJSON> | URL, init?: RequestPonyfillInit): Promise<PonyfillResponse<TResponseJSON>>;