Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.webworker.d.ts>addEventListener

A modern runtime for JavaScript and TypeScript.
Go to Latest
function addEventListener
import { addEventListener } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.webworker.d.ts";

Type Parameters

K extends keyof DedicatedWorkerGlobalScopeEventMap

Parameters

type: K
listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any
optional
options: boolean | AddEventListenerOptions

Parameters

type: string
optional
options: boolean | AddEventListenerOptions