UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

9 lines (6 loc) 240 B
import { RequestInfo, RequestInit, Response } from 'undici'; export type Fetcher = (input: RequestInfo, init?: RequestInit) => Promise<Response>; export interface FetcherWithCleanup { fetch: Fetcher; close: () => Promise<void>; }