Skip to main content
The Deno 2 Release Candidate is 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
interface CustomEvent
implements Event
import { type CustomEvent } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.deno.shared_globals.d.ts";

Type Parameters

optional
T = any

Properties

readonly
detail: T

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

variable CustomEvent
import { CustomEvent } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.deno.shared_globals.d.ts";

type

{ readonly prototype: CustomEvent; new <T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; }