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
interface CustomEvent
implements Event
import { type CustomEvent } from "https://deno.land/x/deno@v1.36.0/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.36.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";

type

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