From 57dc1923378602927e80f7ad45dc6bedd69bb71e Mon Sep 17 00:00:00 2001 From: Paulo Date: Wed, 15 Nov 2023 18:26:44 +0100 Subject: [PATCH] Update StrictReactNode type --- packages/@react-facet/dom-fiber/src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@react-facet/dom-fiber/src/types.ts b/packages/@react-facet/dom-fiber/src/types.ts index 533d63e4..f4a9b57d 100644 --- a/packages/@react-facet/dom-fiber/src/types.ts +++ b/packages/@react-facet/dom-fiber/src/types.ts @@ -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 @@ -110,7 +110,7 @@ interface StrictReactElement

{ * * 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 | boolean | null | undefined +export type StrictReactNode = StrictReactElement | ReactText | ReactFragment | ReactPortal | boolean | null | undefined export type ElementProps = PointerEvents & FocusEvents &