import { LitElement, html, customElement, property } from 'lit-element'; @customElement('my-element') class MyElement extends LitElement { @property({type: String}) name = 'World'; constructor() { super(); } render(){ return html`

Hello, ${this.name}!

`; } } declare global { interface HTMLElementTagNameMap { 'my-element': MyElement; } }