UNPKG

@chasemoskal/magical

Version:

web toolkit for lit apps

11 lines (8 loc) 248 B
import {ev} from "./event/ev.js" import {MagicEventBase} from "./event/base.js" export function MagicEvent<D>(type: string) { return class extends MagicEventBase<D> { static readonly type = type static readonly target = ev(this).target } }