UNPKG

ky

Version:

Tiny and elegant HTTP client based on the Fetch API

6 lines (5 loc) 240 B
export type TimeoutOptions = { timeout: number; fetch: typeof fetch; }; export default function timeout(request: Request, init: RequestInit, abortController: AbortController | undefined, options: TimeoutOptions): Promise<Response>;