Skip to content

Commit

Permalink
Allow URL as input on fetch() on TypeScript typings for compat with N…
Browse files Browse the repository at this point in the history
…ode.js
  • Loading branch information
harmony7 committed Nov 23, 2023
1 parent 4eeabfc commit 1421775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ declare function clearInterval(intervalID?: number): void;
* @param init - An object containing settings to apply to the request
* @group Fetch API
*/
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;

/**
* @group Scheduling
Expand Down Expand Up @@ -1820,4 +1820,4 @@ type KeyFormat =
| "raw"
// | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";

0 comments on commit 1421775

Please sign in to comment.