Skip to main content
Module

x/ky/test/_require.ts

🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
Go to Latest
File
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */import fetch, {Headers, Request, Response} from 'node-fetch';import AbortController from 'abort-controller';import FormData from 'form-data';
// We use `@ts-ignore` as there are some inconsistency error when using `@ts-expect-error`.
globalThis.AbortController = AbortController;// @ts-ignoreglobalThis.fetch = fetch;// @ts-ignoreglobalThis.Headers = Headers;// @ts-ignoreglobalThis.Request = Request;// @ts-ignoreglobalThis.Response = Response;// @ts-ignoreglobalThis.FormData = FormData;