@rkmodules/rules 0.0.121 → 0.0.123
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.cjs.js +14 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +14 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/DataTree/index.d.ts +9 -0
- package/package.json +1 -1
|
@@ -29,7 +29,16 @@ export declare function trimTree<T>(tree: Tree<T>, depth?: number): Tree<T>;
|
|
|
29
29
|
* checks if the given structure is a data tree
|
|
30
30
|
*/
|
|
31
31
|
export declare function isTree(value: any): value is Tree<any>;
|
|
32
|
+
/**
|
|
33
|
+
* checks whether the tree has no groups at all
|
|
34
|
+
* NOTE: an empty group is not considered an empty tree
|
|
35
|
+
*/
|
|
32
36
|
export declare function isEmptyTree(value: any): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* checks whether the tree has no items. It still may have empty groups
|
|
39
|
+
* use isEmptyTree to check if there are no groups at all
|
|
40
|
+
*/
|
|
41
|
+
export declare function isEmpty(value: any): boolean;
|
|
33
42
|
export declare function isSingleTon(value: Tree<any>): boolean;
|
|
34
43
|
/**
|
|
35
44
|
* turns a value or array of values into a tree
|