Skip to content

Commit

Permalink
Update StrictReactNode type
Browse files Browse the repository at this point in the history
  • Loading branch information
pirelenito committed Nov 15, 2023
1 parent b45cc84 commit 57dc192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@react-facet/dom-fiber/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FacetProp, Unsubscribe } from '@react-facet/core'
import { FiberRoot, Reconciler } from 'react-reconciler'
import { Key, MutableRefObject, ReactText } from 'react'
import { FiberRoot, ReactPortal, Reconciler } from 'react-reconciler'
import { Key, MutableRefObject, ReactText, ReactFragment } from 'react'

export type FacetFiberRoot = FiberRoot

Expand Down Expand Up @@ -110,7 +110,7 @@ interface StrictReactElement<P = unknown, T extends string = string> {
*
* It prevents passing a function as a Node. This allow us to catch accidental passing of facets as children.
*/
export type StrictReactNode = StrictReactElement | ReactText | Array<StrictReactNode> | boolean | null | undefined
export type StrictReactNode = StrictReactElement | ReactText | ReactFragment | ReactPortal | boolean | null | undefined

export type ElementProps<T> = PointerEvents &
FocusEvents &
Expand Down

0 comments on commit 57dc192

Please sign in to comment.