Skip to content

Commit 04e5897

Browse files
authored
refactor(jsx): add override to toStringToBuffer in classes extending JSXNode (#3505)
1 parent de7827e commit 04e5897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jsx/base.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class JSXNode implements HtmlEscaped {
242242
}
243243

244244
class JSXFunctionNode extends JSXNode {
245-
toStringToBuffer(buffer: StringBufferWithCallbacks): void {
245+
override toStringToBuffer(buffer: StringBufferWithCallbacks): void {
246246
const { children } = this
247247

248248
const res = (this.tag as Function).call(null, {
@@ -284,7 +284,7 @@ class JSXFunctionNode extends JSXNode {
284284
}
285285

286286
export class JSXFragmentNode extends JSXNode {
287-
toStringToBuffer(buffer: StringBufferWithCallbacks): void {
287+
override toStringToBuffer(buffer: StringBufferWithCallbacks): void {
288288
childrenToStringToBuffer(this.children, buffer)
289289
}
290290
}

0 commit comments

Comments
 (0)