-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Expand file tree
/
Copy pathurl.d.ts
More file actions
24 lines (18 loc) · 800 Bytes
/
Copy pathurl.d.ts
File metadata and controls
24 lines (18 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export {};
import * as url from "node:url";
declare global {
interface URL extends url.URL {}
var URL: typeof globalThis extends { onmessage: any; URL: infer T } ? T : typeof url.URL;
interface URLPattern extends url.URLPattern {}
var URLPattern: typeof globalThis extends {
onmessage: any;
scheduler: any; // Must be a var introduced at the same time as URLPattern.
URLPattern: infer T;
} ? T
: typeof url.URLPattern;
interface URLPatternInit extends url.URLPatternInit {}
interface URLPatternResult extends url.URLPatternResult {}
interface URLSearchParams extends url.URLSearchParams {}
var URLSearchParams: typeof globalThis extends { onmessage: any; URLSearchParams: infer T } ? T
: typeof url.URLSearchParams;
}