Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 24, 2022
1 parent 0357cd3 commit 948d10f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/kit/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,10 @@ declare module '@sveltejs/kit/hooks' {
* A polyfill for `fetch` and its related interfaces, used by adapters for environments that don't provide a native implementation.
*/
declare module '@sveltejs/kit/install-fetch' {
import fetch, { Headers, Request, Response } from 'node-fetch';

/**
* Make `fetch`, `Headers`, `Request` and `Response` available as globals, via `node-fetch`
*/
export function installFetch(): void;

export { fetch, Headers, Request, Response };
}

/**
Expand Down

0 comments on commit 948d10f

Please sign in to comment.