28 lines
608 B
TypeScript
28 lines
608 B
TypeScript
import { LitElement } from "lit";
|
|
/**
|
|
* An example element.
|
|
*
|
|
* @slot - This element has a slot
|
|
* @csspart button - The button
|
|
*/
|
|
export declare class MyElement extends LitElement {
|
|
static styles: import("lit").CSSResult;
|
|
/**
|
|
* The name to say "Hello" to.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* The number of times the button has been clicked.
|
|
*/
|
|
count: number;
|
|
render(): import("lit-html").TemplateResult<1>;
|
|
private _onClick;
|
|
foo(): string;
|
|
firstUpdated(): void;
|
|
}
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"my-element": MyElement;
|
|
}
|
|
}
|