Skip to content

Commit

Permalink
Fix lit-html render callback typing
Browse files Browse the repository at this point in the history
  • Loading branch information
schlusslicht committed Dec 13, 2023
1 parent 1c41a7e commit 3f9e514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lit/src/component/lit-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class LitComponent extends LitElement {
`;
}

protected override createRenderRoot(): Element | ShadowRoot {
protected override createRenderRoot(): DocumentFragment | HTMLElement {
while (this.shadowRoot?.hasChildNodes()) {
this.shadowRoot.removeChild(this.shadowRoot.lastChild!);
}
Expand Down

0 comments on commit 3f9e514

Please sign in to comment.