Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename __fetch_polyfill to installFetch #4111

Merged
merged 4 commits into from
Feb 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix types
  • Loading branch information
Rich-Harris committed Feb 24, 2022
commit 948d10f55740e8ee298d69c7ca1cd07eeeeff441
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