UNPKG

@nodescript/stdlib

Version:
16 lines (15 loc) 504 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; throw: boolean; responseType: FetchResponseType; }; type R = Promise<unknown>; export declare const module: ModuleDefinition<P, R>; export declare const compute: ModuleCompute<P, R>; export {};