diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts index b95cfa9ad..e187154d5 100644 --- a/packages/react/src/types.ts +++ b/packages/react/src/types.ts @@ -1,4 +1,4 @@ -import { ReactElement, ReactFragment, ReactPortal } from 'react'; +import type { ReactElement, ReactPortal } from 'react'; // eslint-disable-next-line @typescript-eslint/no-namespace export namespace Cauldron { @@ -11,9 +11,4 @@ export namespace Cauldron { * This type is meant to ensure that a prop can actually be rendered as content. * Explicit equivalent of Exclude */ -export type ContentNode = - | string - | number - | ReactFragment - | ReactPortal - | ReactElement; +export type ContentNode = string | number | ReactPortal | ReactElement;