@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.
- package/dist/index.cjs.css +25 -18
- package/dist/index.cjs.js +62 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +25 -18
- package/dist/index.esm.js +62 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/DataTree/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
/**
|