Skip to content

Commit

Permalink
fix: fix ci type validate error
Browse files Browse the repository at this point in the history
fix ci type validate error
  • Loading branch information
zhangtengjin authored and wewoor committed Feb 25, 2021
1 parent 0259a15 commit ce77de5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/tree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export enum FileTypes {
FILE = 'file',
FOLDER = 'folder',
ROOT = 'rootFolder',
}
export type FileType = keyof typeof FileTypes;
};
export type FileType = 'file' | 'folder' | 'rootFolder';

export interface ITreeNodeItem {
name?: string;
Expand Down Expand Up @@ -51,11 +51,11 @@ export interface ITreeProps {
expandedKeys?: Key[];
defaultCheckedKeys?: Key[];
checkedKeys?:
| Key[]
| {
checked: Key[];
halfChecked: Key[];
};
| Key[]
| {
checked: Key[];
halfChecked: Key[];
};
defaultSelectedKeys?: Key[];
selectedKeys?: Key[];
titleRender?: (node: DataNode) => React.ReactNode;
Expand Down

0 comments on commit ce77de5

Please sign in to comment.