@rkmodules/rules 0.0.121 → 0.0.122

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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkmodules/rules",
3
- "version": "0.0.121",
3
+ "version": "0.0.122",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",