@nightingale-elements/nightingale-new-core
Version:
Base Elements for Nightingale Components
18 lines • 562 B
TypeScript
import { CustomElementDecorator } from "lit/decorators";
/**
* Extending the decorator to define custom elements in order to make sure only gets defined once.
*
* ```js
* @customElementOnce('my-element')
* class MyElement extends LitElement {
* render() {
* return html``;
* }
* }
* ```
* @category Decorator
* @param tagName The tag name of the custom element to define.
*/
export declare const customElementOnce: (tagName: string) => CustomElementDecorator;
export default customElementOnce;
//# sourceMappingURL=customElementOnce.d.ts.map