Skip to content

Commit f9d25b7

Browse files
committed
set return type of TextComponent#append to never
1 parent 64ebe28 commit f9d25b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TextComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class TextComponent extends NodeComponent<Text> {
3333
*
3434
* @throws {@link !DOMException} Always
3535
*/
36-
public override append(): typeof this {
36+
public override append(): never {
3737
throw new DOMException(`NodeComponent.append: Cannot add children to a ${this.constructor.name}`);
3838
}
3939

0 commit comments

Comments
 (0)