import { type Argument2, Module, injectable } from "@akala/core"; export default function (module: Module) { return function (ctor: TClass): TClass { const cl = injectable(ctor); module.activateNew('$injector')(cl); return cl; } } export function webComponent(tag: string, options?: Argument2) { return function (ctor: TClass): TClass { const cl = injectable(ctor); customElements.define(tag, cl, options); return cl; } }