Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 209f063

Browse files
authored
Merge pull request #117 from wopehq/fix-typings
Fix wrong typing
2 parents 9f9c41a + 51444b0 commit 209f063

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue3-tree",
33
"description": "A customizable vuejs tree viewer.",
4-
"version": "0.11.4",
4+
"version": "0.11.5",
55
"author": {
66
"name": "seo.do",
77
"email": "opensource@seo.do"

src/lib/index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ declare const Tree: new () => {
124124
}
125125
};
126126

127-
export declare function getNodeById(nodes: TreeNode[], id: TreeNode['id']): void;
128-
export declare function setNodeById(nodes: TreeNode[], id: TreeNode['id'], node: TreeNode): void;
127+
export declare function getNodeById(nodes: TreeNode[], id: TreeNode['id']): TreeNode | undefined;
129128
export declare function setNodeById(nodes: TreeNode[], id: TreeNode['id'], node: TreeNode): void;
130129

131130
export default Tree;

0 commit comments

Comments
 (0)