Skip to content
Myr

refactor(jsx): add `override` to `toStringToBuffer` in classes extending `JSXNode` (#3505)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent de7827e · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/jsx/base.ts+2 added-2 removed
240 unmodified lines
241 }242}243244class JSXFunctionNode extends JSXNode {245 toStringToBuffer(buffer: StringBufferWithCallbacks): void {245 override toStringToBuffer(buffer: StringBufferWithCallbacks): void {246 const { children } = this247248 const res = (this.tag as Function).call(null, {249 ...this.props,
33 unmodified lines
283 }284}285286export class JSXFragmentNode extends JSXNode {287 toStringToBuffer(buffer: StringBufferWithCallbacks): void {287 override toStringToBuffer(buffer: StringBufferWithCallbacks): void {288 childrenToStringToBuffer(this.children, buffer)289 }290}291
131 unmodified lines