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.
@@ -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: any;
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: any;
43
- selectedNode: any;
42
+ selectedNodeId: string;
43
+ selectedNode: Node<T, C, NodeType>;
44
44
  toJson: () => object;
45
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-abcd",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Simple react hook for CRUD type apps",
5
5
  "repository": {
6
6
  "url": "https://github.com/smtrd3/use-abcd"