add window.self read-only property (#4131)

This commit is contained in:
Bartek Iwańczuk 2020-02-26 11:49:38 +01:00 committed by GitHub
parent 5946808f66
commit 0e37184ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View file

@ -9,6 +9,7 @@
declare interface Window extends WindowOrWorkerGlobalScope {
window: Window & WindowOrWorkerGlobalScope & typeof globalThis;
self: Window & WindowOrWorkerGlobalScope & typeof globalThis;
onload: Function | undefined;
onunload: Function | undefined;
crypto: Crypto;
@ -16,6 +17,7 @@ declare interface Window extends WindowOrWorkerGlobalScope {
}
declare const window: Window & WindowOrWorkerGlobalScope & typeof globalThis;
declare const self: Window & WindowOrWorkerGlobalScope & typeof globalThis;
declare const onload: Function | undefined;
declare const onunload: Function | undefined;
declare const crypto: Crypto;