(value: string)
| 15 | |
| 16 | /** Create a text node with the given contents. */ |
| 17 | export function createTextNode(value: string): JSX.Element { |
| 18 | return { |
| 19 | type: "text", |
| 20 | id: undefined, |
| 21 | children: undefined, |
| 22 | font: "", |
| 23 | weight: 400, |
| 24 | size: 16, |
| 25 | color: undefined, |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | /** Replace the contents of the given text node. */ |
| 30 | export function replaceText(textNode: JSX.Element, value: string): void { |
nothing calls this directly
no outgoing calls
no test coverage detected