Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/custom_event.ts>CustomEvent

A modern runtime for JavaScript and TypeScript.
Go to Latest
class CustomEvent
implements [domTypes.CustomEvent]
import { CustomEvent } from "https://deno.land/x/deno@v0.30.0/cli/js/custom_event.ts";

Constructors

new
CustomEvent(type: string, customEventInitDict?: domTypes.CustomEventInit)

Properties

readonly
detail: any
readonly
[Symbol.toStringTag]: string

Methods

initCustomEvent(
type: string,
bubbles?: boolean,
cancelable?: boolean,
detail?: any,
): void