From baa94e8e75949765ee7e290c8dc82baef7b1cb29 Mon Sep 17 00:00:00 2001 From: rdmclin2 Date: Fri, 15 Sep 2023 16:47:25 +0800 Subject: [PATCH] :bug: fix: SortableTree return type --- src/SortableTree/container/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SortableTree/container/index.tsx b/src/SortableTree/container/index.tsx index ae1ecdeb..5f42ca40 100644 --- a/src/SortableTree/container/index.tsx +++ b/src/SortableTree/container/index.tsx @@ -1,4 +1,4 @@ -import { memo, ReactNode } from 'react'; +import { FC, memo } from 'react'; import { ConfigProvider } from '../../ConfigProvider'; import type { ControlledState } from '../store'; @@ -23,4 +23,4 @@ export const SortableTree = memo((props) => { ); -}) as (props: SortableTreeProps) => ReactNode; +}) as (props: SortableTreeProps) => ReturnType;