Files
meteor/packages/fetch/fetch.d.ts
Drew Fisher e7808b3a55 Fix fetch() type declaration
`fetch()` is the type of `globalThis.fetch`; it is not a function which
returns a `globalThis.fetch`.

Fixes #12351.
2022-12-10 13:30:17 -08:00

5 lines
218 B
TypeScript

export declare var fetch: typeof globalThis.fetch;
export declare var Headers: typeof globalThis.Headers;
export declare var Request: typeof globalThis.Request;
export declare var Response: typeof globalThis.Response;