class WorkerGlobalScope
extends EventTarget
import { WorkerGlobalScope } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.worker.d.ts";
Properties
caches: CacheStorage
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null
Methods
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(): void
type: K,
listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(): void
type: K,
listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
removeEventListener(): void