From 04e5897b7d37fbdc5cbdaf3bd8fbe9bc6c1a8a1b Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Fri, 11 Oct 2024 16:45:19 +0900 Subject: [PATCH] refactor(jsx): add `override` to `toStringToBuffer` in classes extending `JSXNode` (#3505) --- src/jsx/base.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jsx/base.ts b/src/jsx/base.ts index bab9c3c9..d3b4d1c2 100644 --- a/src/jsx/base.ts +++ b/src/jsx/base.ts @@ -242,7 +242,7 @@ export class JSXNode implements HtmlEscaped { } class JSXFunctionNode extends JSXNode { - toStringToBuffer(buffer: StringBufferWithCallbacks): void { + override toStringToBuffer(buffer: StringBufferWithCallbacks): void { const { children } = this const res = (this.tag as Function).call(null, { @@ -284,7 +284,7 @@ class JSXFunctionNode extends JSXNode { } export class JSXFragmentNode extends JSXNode { - toStringToBuffer(buffer: StringBufferWithCallbacks): void { + override toStringToBuffer(buffer: StringBufferWithCallbacks): void { childrenToStringToBuffer(this.children, buffer) } }