Skip to content

Commit 27e76f9

Browse files
ricticjustinfagnani
authored andcommitted
Explicitly annotate render's return type (#316)
1 parent 0eafaa5 commit 27e76f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lit-element.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export class LitElement extends UpdatingElement {
5151
* Invoked on each update to perform rendering tasks. This method must return
5252
* a lit-html TemplateResult. Setting properties inside this method will *not*
5353
* trigger the element to update.
54-
* @returns {TemplateResult} Must return a lit-html TemplateResult.
5554
*/
56-
protected render() {}
55+
protected render(): TemplateResult|void {}
5756
}

0 commit comments

Comments
 (0)