mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
add window.self read-only property (#4131)
This commit is contained in:
parent
5946808f66
commit
0e37184ca8
3 changed files with 15 additions and 0 deletions
2
cli/js/lib.deno.window.d.ts
vendored
2
cli/js/lib.deno.window.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue