feat: export BasicDataNode type from tree (#44624)

This commit is contained in:
kiner-tang(文辉) 2023-09-05 13:43:15 +08:00 committed by GitHub
parent ef4ccaeaac
commit 03fee8d837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ export type {
AntdTreeNodeAttribute,
TreeProps,
} from './Tree';
export type { DataNode };
export type { DataNode, BasicDataNode };
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(
props: React.PropsWithChildren<TreeProps<T>> & { ref?: React.Ref<RcTree> },