UNPKG

974 BTypeScriptView Raw
1import type RcTree from 'rc-tree';
2import type { BasicDataNode } from 'rc-tree';
3import { TreeNode } from 'rc-tree';
4import type { DataNode } from 'rc-tree/lib/interface';
5import DirectoryTree from './DirectoryTree';
6import type { TreeProps } from './Tree';
7export type { EventDataNode } from 'rc-tree/lib/interface';
8export type { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps, } from './DirectoryTree';
9export type { AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, AntdTreeNodeAttribute, TreeProps, } from './Tree';
10export type { DataNode, BasicDataNode };
11type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(props: React.PropsWithChildren<TreeProps<T>> & React.RefAttributes<RcTree>) => React.ReactElement) & {
12 TreeNode: typeof TreeNode;
13 DirectoryTree: typeof DirectoryTree;
14};
15declare const Tree: CompoundedComponent;
16export default Tree;
17
\No newline at end of file