Skip to content

Commit c7e8908

Browse files
committed
pure typeof globalThis
1 parent 1389855 commit c7e8908

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18407,14 +18407,14 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1840718407
readonly scrollX: number;
1840818408
readonly scrollY: number;
1840918409
readonly scrollbars: BarProp;
18410-
readonly self: Window & typeof globalThis;
18410+
readonly self: typeof globalThis;
1841118411
readonly speechSynthesis: SpeechSynthesis;
1841218412
status: string;
1841318413
readonly statusbar: BarProp;
1841418414
readonly styleMedia: StyleMedia;
1841518415
readonly toolbar: BarProp;
1841618416
readonly top: Window;
18417-
readonly window: Window & typeof globalThis;
18417+
readonly window: typeof globalThis;
1841818418
alert(message?: any): void;
1841918419
blur(): void;
1842018420
/** @deprecated */
@@ -19396,14 +19396,14 @@ declare var screenY: number;
1939619396
declare var scrollX: number;
1939719397
declare var scrollY: number;
1939819398
declare var scrollbars: BarProp;
19399-
declare var self: Window & typeof globalThis;
19399+
declare var self: typeof globalThis;
1940019400
declare var speechSynthesis: SpeechSynthesis;
1940119401
declare var status: string;
1940219402
declare var statusbar: BarProp;
1940319403
declare var styleMedia: StyleMedia;
1940419404
declare var toolbar: BarProp;
1940519405
declare var top: Window;
19406-
declare var window: Window & typeof globalThis;
19406+
declare var window: typeof globalThis;
1940719407
declare function alert(message?: any): void;
1940819408
declare function blur(): void;
1940919409
/** @deprecated */

baselines/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5338,7 +5338,7 @@ interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, Win
53385338
readonly location: WorkerLocation;
53395339
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
53405340
readonly performance: Performance;
5341-
readonly self: WorkerGlobalScope & typeof globalThis;
5341+
readonly self: typeof globalThis;
53425342
msWriteProfilerMark(profilerMarkName: string): void;
53435343
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
53445344
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5727,7 +5727,7 @@ declare var isSecureContext: boolean;
57275727
declare var location: WorkerLocation;
57285728
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
57295729
declare var performance: Performance;
5730-
declare var self: WorkerGlobalScope & typeof globalThis;
5730+
declare var self: typeof globalThis;
57315731
declare function msWriteProfilerMark(profilerMarkName: string): void;
57325732
/**
57335733
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

inputfiles/overridingTypes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@
452452
"read-only": 0
453453
},
454454
"self": {
455-
"override-type": "Window & typeof globalThis"
455+
"override-type": "typeof globalThis"
456456
},
457457
"window": {
458-
"override-type": "Window & typeof globalThis"
458+
"override-type": "typeof globalThis"
459459
}
460460
}
461461
},
@@ -2738,7 +2738,7 @@
27382738
"properties": {
27392739
"property": {
27402740
"self": {
2741-
"override-type": "WorkerGlobalScope & typeof globalThis"
2741+
"override-type": "typeof globalThis"
27422742
}
27432743
}
27442744
}

0 commit comments

Comments
 (0)