From 803c2f78e02bab8568fa6263e2d0a0f2670b8bbb Mon Sep 17 00:00:00 2001 From: Jbee Date: Tue, 12 Dec 2023 20:09:16 +0900 Subject: [PATCH] fix(table): remove JSX.Element type (#284) * fix(table): remove JSX.Element type * chore: changeset --- .changeset/cyan-spoons-arrive.md | 5 +++++ packages/table/src/types/table.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/cyan-spoons-arrive.md diff --git a/.changeset/cyan-spoons-arrive.md b/.changeset/cyan-spoons-arrive.md new file mode 100644 index 00000000..e4ce6f35 --- /dev/null +++ b/.changeset/cyan-spoons-arrive.md @@ -0,0 +1,5 @@ +--- +"@h6s/table": patch +--- + +replace JSX.Element type to ReactNode diff --git a/packages/table/src/types/table.ts b/packages/table/src/types/table.ts index 5493e9eb..cc9e2851 100644 --- a/packages/table/src/types/table.ts +++ b/packages/table/src/types/table.ts @@ -46,7 +46,7 @@ export type CellRendererProps = PropsWithChildren<{ export type CellRecursiveRenderer = ( props: PropsWithChildren<{ cellProps: CellType }> -) => JSX.Element | null; +) => ReactNode | null; export type CellComponent = (props: { cellProps: CellType;