import {ev} from "./ev.js" import {defaultDispatchOptions} from "./default-dispatch-options.js" export class MagicEventBase extends CustomEvent { static readonly type: string static readonly target = ev(this).target constructor(name: string, options: CustomEventInit & {detail: D}) { super(name, {...defaultDispatchOptions, ...options}) } }