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

x/ayonli_jsext/event.ts>createCustomEvent

A JavaScript extension package for building strong and modern applications.
Latest
function createCustomEvent
import { createCustomEvent } from "https://deno.land/x/ayonli_jsext@v0.9.72/event.ts";

Creates a CustomEvent instance based on the given options. If the CustomEvent constructor is not available, the generic Event constructor will be used instead, and the options will be attached to the event as its properties.

Type Parameters

optional
T = any

Parameters

type: string
optional
options: CustomEventInit<T> = [UNSUPPORTED]