Skip to content

Commit ce77de5

Browse files
zhangtengjinwewoor
authored andcommitted
fix: fix ci type validate error
fix ci type validate error
1 parent 0259a15 commit ce77de5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/tree/index.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export enum FileTypes {
1515
FILE = 'file',
1616
FOLDER = 'folder',
1717
ROOT = 'rootFolder',
18-
}
19-
export type FileType = keyof typeof FileTypes;
18+
};
19+
export type FileType = 'file' | 'folder' | 'rootFolder';
2020

2121
export interface ITreeNodeItem {
2222
name?: string;
@@ -51,11 +51,11 @@ export interface ITreeProps {
5151
expandedKeys?: Key[];
5252
defaultCheckedKeys?: Key[];
5353
checkedKeys?:
54-
| Key[]
55-
| {
56-
checked: Key[];
57-
halfChecked: Key[];
58-
};
54+
| Key[]
55+
| {
56+
checked: Key[];
57+
halfChecked: Key[];
58+
};
5959
defaultSelectedKeys?: Key[];
6060
selectedKeys?: Key[];
6161
titleRender?: (node: DataNode) => React.ReactNode;

0 commit comments

Comments
 (0)