UNPKG

ky

Version:

Tiny and elegant HTTP client based on the Fetch API

7 lines (6 loc) • 312 B
import type { InternalOptions } from '../types/options.js'; export type TimeoutOptions = { timeout: number; fetch: InternalOptions['fetch']; }; export default function timeout(request: Request, init: RequestInit, abortController: AbortController | undefined, options: TimeoutOptions): Promise<Response>;