Skip to content

Commit

Permalink
fix(react): fix incorrect React.Fragment for ContentNode type (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker committed Jun 12, 2024
1 parent 3f4ef2c commit 2f7e190
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/react/src/types.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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<ReactNode, boolean | null | undefined>
*/
export type ContentNode =
| string
| number
| ReactFragment
| ReactPortal
| ReactElement;
export type ContentNode = string | number | ReactPortal | ReactElement;

0 comments on commit 2f7e190

Please sign in to comment.