fetch-options.ts
This file
Path
test-d/fetch-options.ts
6 lines · 195 bytes · TypeScript
Last changed by
Support readonly inputs and explicit undefined in TypeScript optionsSindre Sorhusbefore adoption51b3177
History of this fileTake it
1234567import {expectTypeOf} from 'expect-type';import type {Options} from 'ky';
const defaultFetch: Options = {fetch: undefined};
expectTypeOf(defaultFetch.fetch).toMatchTypeOf<Options['fetch']>();