Skip to content

Commit 4f39943

Browse files
authored
fix: Allow URL as input on fetch() on TypeScript typings for compat with Node.js (#707)
1 parent 4eeabfc commit 4f39943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/globals.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ declare function clearInterval(intervalID?: number): void;
16211621
* @param init - An object containing settings to apply to the request
16221622
* @group Fetch API
16231623
*/
1624-
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
1624+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
16251625

16261626
/**
16271627
* @group Scheduling

0 commit comments

Comments
 (0)