Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.shared_globals.d.ts>CustomEvent

A modern runtime for JavaScript and TypeScript.
Go to Latest
class CustomEvent
extends Event
import { CustomEvent } from "https://deno.land/x/deno@v1.32.3/cli/tsc/dts/lib.deno.shared_globals.d.ts";

Constructors

new
CustomEvent(typeArg: string, eventInitDict?: CustomEventInit<T>)

Type Parameters

optional
T = any

Properties

readonly
detail: T

Returns any custom data event was created with. Typically used for synthetic events.