@rkmodules/rules 0.0.65 → 0.0.67

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.
@@ -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[] | typeof DISCARD): 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,
@@ -96,7 +96,7 @@ export declare function binaryOnTreeBranch<T, U, V>(treeA: Tree<T>, treeB: Tree<
96
96
  * @param fn
97
97
  * @returns
98
98
  */
99
- export declare function binaryOnTree<T, U, V>(treeA: Tree<T>, treeB: Tree<U>, fn: (itemA: T, itemB: U, pathA: string, pathB: string, index: number) => V | V[], fill?: boolean): Tree<V>;
99
+ export declare function binaryOnTree<T, U, V>(treeA: Tree<T>, treeB: Tree<U>, fn: (itemA: T | undefined, itemB: U | undefined, pathA: string, pathB: string, index: number) => V | V[], fill?: boolean): Tree<V>;
100
100
  export declare function treeSize<T>(tree: Tree<T>): number;
101
101
  export declare function sameShape(a: Tree<any>, b: Tree<any>): boolean;
102
102
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkmodules/rules",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",