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

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

A modern runtime for JavaScript and TypeScript.
Latest
interface CustomEvent
implements Event
import { type CustomEvent } from "https://deno.land/x/deno@v1.41.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.41.0/cli/tsc/dts/lib.deno.shared_globals.d.ts";

type

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