WXL
5 天以前 871522ed7e06fd9c62a87c178d7f5c88d7853a20
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;
}