interface WorkerGlobalScope
implements EventTarget
import { type WorkerGlobalScope } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.worker.d.ts";
Properties
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null
caches: CacheStorage
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,
import { WorkerGlobalScope } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.worker.d.ts";