UNPKG

@nodescript/stdlib

Version:
20 lines (19 loc) 594 B
import { ModuleCompute, ModuleDefinition } from '@nodescript/core/types'; import { FetchMethod, FetchResponseType } from '../lib/web.js'; type P = { method: FetchMethod; url: string; query: Record<string, string | undefined>; headers: Record<string, string | undefined>; body: any; responseType: FetchResponseType; followRedirects: boolean; proxyUrl: string; throw: boolean; retries: number; ca?: string; }; type R = Promise<unknown>; export declare const module: ModuleDefinition<P, R>; export declare const compute: ModuleCompute<P, R>; export {};