@rkmodules/rules 0.0.64 → 0.0.66

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.
@@ -45,7 +45,7 @@ export declare function getBranch<T>(tree: Tree<T>, path: string): T[] | void;
45
45
  * @returns
46
46
  */
47
47
  export declare function mapTree<T, U>(tree: Tree<T>, fn: (item: T, path: string, index: number) => U | U[]): Tree<U>;
48
- export declare function mapTreeBranch<T, U>(tree: Tree<T>, fn: (branch: T[], path: string) => U[] | undefined): Tree<U>;
48
+ export declare function mapTreeBranch<T, U>(tree: Tree<T>, fn: (branch: T[], path: string) => U[] | typeof DISCARD): Tree<U>;
49
49
  /**
50
50
  * n-ary operation on a tree, branch by branch
51
51
  * - branches are matched by index,
@@ -57,7 +57,7 @@ export declare function mapTreeBranch<T, U>(tree: Tree<T>, fn: (branch: T[], pat
57
57
  * @param fn
58
58
  * @returns
59
59
  */
60
- export declare function nAryOnTreeBranch<V>(trees: Tree<any>[], fn: (branches: any[][], paths: string[]) => V[] | void): Tree<V>;
60
+ export declare function nAryOnTreeBranch<V>(trees: Tree<any>[], fn: (branches: (any[] | undefined)[], paths: string[]) => V[] | typeof DISCARD): Tree<V>;
61
61
  /**
62
62
  * n-ary operation on a tree, branch by branch
63
63
  * - branches are matched by index,
@@ -83,7 +83,7 @@ export declare function nAryOnTree<R>(trees: Tree<any>[], fn: (items: any[], pat
83
83
  * @param fn
84
84
  * @returns
85
85
  */
86
- export declare function binaryOnTreeBranch<T, U, V>(treeA: Tree<T>, treeB: Tree<U>, fn: (branchA: T[], branchB: U[], pathA: string, pathB: string) => V[] | void): Tree<V>;
86
+ export declare function binaryOnTreeBranch<T, U, V>(treeA: Tree<T>, treeB: Tree<U>, fn: (branchA: T[], branchB: U[], pathA: string, pathB: string) => V[] | typeof DISCARD): Tree<V>;
87
87
  /**
88
88
  * binary operation on a tree, branch by branch
89
89
  * - branches are matched by index,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkmodules/rules",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",