ky
Version:
Tiny and elegant HTTP client based on the Fetch API
7 lines (6 loc) • 312 B
TypeScript
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>;