Makes TreeNode component more type safe

Makes TreeNode component more type safe
This commit is contained in:
Kirill Alexander Khalitov 2018-06-07 18:56:26 +03:00 committed by 偏右
parent 74755fef99
commit 0ca1a990be

View File

@ -106,7 +106,7 @@ export interface TreeProps {
}
export default class Tree extends React.Component<TreeProps, any> {
static TreeNode = TreeNode;
static TreeNode: React.ComponentType<AntTreeNodeProps> = TreeNode;
static defaultProps = {
prefixCls: 'ant-tree',