fix: resolve ts type error

pull/40/MERGE
xingyu 2023-11-06 09:59:31 +08:00
parent 90f298c709
commit f8b7a38d17
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ export interface TreeActionItem {
export interface InsertNodeParams {
parentKey: string | null
node: TreeDataItem
node?: TreeDataItem
list?: TreeDataItem[]
push?: 'push' | 'unshift'
}
@ -176,7 +176,7 @@ export interface TreeActionType {
filterByLevel: (level: number) => void
insertNodeByKey: (opt: InsertNodeParams) => void
insertNodesByKey: (opt: InsertNodeParams) => void
deleteNodeByKey: (key: string) => void
deleteNodeByKey: (key: string, list?: TreeDataItem[]) => void
updateNodeByKey: (key: string, node: Omit<TreeDataItem, 'key'>) => void
setSearchValue: (value: string) => void
getSearchValue: () => string