Skip to content

Commit

Permalink
feat: allow recursive JSX children array
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 21, 2023
1 parent a2a12d0 commit 8fc2c2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/types/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type Thunk<T = any> = () => T
type Thunkable<T> = T | Thunk<T>

type JSXChild =
| JSXChild[]
| NodeList
| HTMLCollection
| ShadowRootContainer
Expand All @@ -35,7 +34,7 @@ type JSXChild =
export declare namespace JSX {
type Element = HTMLElement

type Children = Thunkable<JSXChild>
type Children = Thunkable<JSXChild> | Children[]

type ElementOption = HTMLElement | SVGElement | false | null | undefined
type ElementsOption = ElementOption | ElementOption[]
Expand Down

0 comments on commit 8fc2c2f

Please sign in to comment.