@rkmodules/rules 0.0.92 → 0.0.94

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