Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 16, 2024
1 parent f44d6d9 commit ef3b85f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/interface.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type * as React from 'react';
import type { SafeKey, Key, DataNode } from 'rc-tree/lib/interface';
import type { SafeKey, Key, DataNode as TreeDataNode } from 'rc-tree/lib/interface';

export type { SafeKey, Key, DataNode };
export type { SafeKey, Key };

export interface DataNode extends Record<string, any>, Omit<TreeDataNode, 'key' | 'children'> {
key?: Key;
value?: SafeKey;
children?: DataNode[];
}

export type SelectSource = 'option' | 'selection' | 'input' | 'clear';

Expand Down Expand Up @@ -60,4 +66,5 @@ export interface FieldNames {
value?: string;
label?: string;
children?: string;
_title?: string[];
}

0 comments on commit ef3b85f

Please sign in to comment.