import { type WebComponentInterface } from './WebComponentInterface'; import WebComponentType from './WebComponentType'; const defineFactory = >(component: WebComponentType): (() => void) => { return function () { customElements.define(component.tagName, component); }; }; export { defineFactory }; export default defineFactory;