From 09aaafe5738f35a0902f538b9c853f7912adacc2 Mon Sep 17 00:00:00 2001 From: mmmveggies Date: Tue, 21 Aug 2018 14:16:47 -0600 Subject: [PATCH] export specific TreeSelect treeData types --- components/tree-select/interface.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/tree-select/interface.tsx b/components/tree-select/interface.tsx index 86a7438d9c..3f1dad9aca 100644 --- a/components/tree-select/interface.tsx +++ b/components/tree-select/interface.tsx @@ -3,7 +3,7 @@ import { AbstractSelectProps } from '../select'; export type TreeNode = TreeNodeNormal | TreeNodeSimpleMode; -interface TreeNodeNormal { +export interface TreeNodeNormal { value: string; /** * @deprecated Please use `title` instead. @@ -18,12 +18,12 @@ interface TreeNodeNormal { children?: TreeNodeNormal[]; } -interface TreeNodeSimpleMode { +export interface TreeNodeSimpleMode { /* It is possible to change `id` and `pId` prop keys using TreeDataSimpleMode so those keys can be anything */ [key: string]: string | boolean | React.ReactNode; } -interface TreeDataSimpleMode { +export interface TreeDataSimpleMode { id?: string; pId?: string; rootPId?: string;