mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Use globalThis to reference global scope (#3719)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
23e67eb515
commit
60b53fd6b6
19 changed files with 219 additions and 264 deletions
12
cli/js/lib.deno_runtime.d.ts
vendored
12
cli/js/lib.deno_runtime.d.ts
vendored
|
@ -2200,8 +2200,16 @@ declare const TextDecoder: typeof __textEncoding.TextDecoder;
|
|||
declare const Request: __domTypes.RequestConstructor;
|
||||
declare const Response: typeof __fetch.Response;
|
||||
declare const performance: __performanceUtil.Performance;
|
||||
declare let onmessage: (e: { data: any }) => void;
|
||||
declare let onerror: (e: Event) => void;
|
||||
declare let onmessage: ((e: { data: any }) => Promise<void> | void) | undefined;
|
||||
declare let onerror:
|
||||
| ((
|
||||
msg: string,
|
||||
source: string,
|
||||
lineno: number,
|
||||
colno: number,
|
||||
e: Event
|
||||
) => boolean | void)
|
||||
| undefined;
|
||||
declare const workerMain: typeof __workers.workerMain;
|
||||
declare const workerClose: typeof __workers.workerClose;
|
||||
declare const postMessage: typeof __workers.postMessage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue