mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +01:00
refactor(jsx): add override
to toStringToBuffer
in classes extending JSXNode
(#3505)
This commit is contained in:
parent
de7827ee27
commit
04e5897b7d
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user