use-abcd 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -1
- package/dist/useCrudTree.d.ts +3 -3
- package/package.json +1 -1
package/dist/useCrudTree.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type TreeConfig<T extends object, C, NodeType = string> = Omit<Config<Tre
|
|
|
16
16
|
* @returns Object with crud operations, state, and the root node
|
|
17
17
|
*/
|
|
18
18
|
export declare function useCrudTree<T extends object, C, NodeType = string>(config: TreeConfig<T, C, NodeType>): {
|
|
19
|
-
rootNode:
|
|
19
|
+
rootNode: Node<T, C, NodeType>;
|
|
20
20
|
items: Map<string, TreeNode<T, NodeType>>;
|
|
21
21
|
context: C;
|
|
22
22
|
syncState: import('./types').SyncState;
|
|
@@ -39,7 +39,7 @@ export declare function useCrudTree<T extends object, C, NodeType = string>(conf
|
|
|
39
39
|
retrySync: (id?: string) => void;
|
|
40
40
|
selectNode: (id: string) => void;
|
|
41
41
|
deselectNode: () => void;
|
|
42
|
-
selectedNodeId:
|
|
43
|
-
selectedNode:
|
|
42
|
+
selectedNodeId: string;
|
|
43
|
+
selectedNode: Node<T, C, NodeType>;
|
|
44
44
|
toJson: () => object;
|
|
45
45
|
};
|