123456789101112131415161718192021222324252627 |
- /**
- * @license
- * Copyright 2017 Google LLC
- * SPDX-License-Identifier: BSD-3-Clause
- */
- import { ClassDescriptor } from './base.js';
- /**
- * Allow for custom element classes with private constructors
- */
- declare type CustomElementClass = Omit<typeof HTMLElement, 'new'>;
- /**
- * Class decorator factory that defines the decorated class as a custom element.
- *
- * ```js
- * @customElement('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 customElement: (tagName: string) => (classOrDescriptor: CustomElementClass | ClassDescriptor) => any;
- export {};
- //# sourceMappingURL=custom-element.d.ts.map
|