Skip to content

Commit

Permalink
feat: export BasicDataNode type from tree (ant-design#44624)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang authored Sep 5, 2023
1 parent ef4ccae commit 03fee8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> },
Expand Down

0 comments on commit 03fee8d

Please sign in to comment.