import { default } from "https://deno.land/x/evtemitter@v3.1.0/EventEmitter.ts";
create a typed CustomEvent, which will have a typed type
property
Type Parameters
Type extends EvName
Parameters
type: EvName
The type / name of the event, will be the type
property
Returns
TypedCustomEvent<Type, undefined>
create a typed CustomEvent, which will have types for the detail
and the type
property
Type Parameters
Type extends EvName
Parameters
type: EvName
The type / name of the event, will be the type
property
detail: Detail
Optional - the detail of the event, will be the detail
property
optional
init: Omit<CustomEventInit, "detail">Optional - a CustomEventInit object without the detail
property