fix: support number elements in jsx templates
This commit is contained in:
parent
fc6480c531
commit
bda8e216e2
3 changed files with 16 additions and 1 deletions
|
|
@ -25,7 +25,13 @@ export interface HTMLElement {
|
|||
/**
|
||||
* All valid types of elements that can be rendered to HTML.
|
||||
*/
|
||||
export type Element = HTMLElement | string | boolean | undefined | null;
|
||||
export type Element =
|
||||
| HTMLElement
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| undefined
|
||||
| null;
|
||||
|
||||
/**
|
||||
* Custom HTMLElement factory that can be parameterized by props.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue