@rkmodules/rules 0.0.93 → 0.0.95
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 +0 -1
- package/dist/index.cjs.js +349 -166
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +0 -1
- package/dist/index.esm.js +349 -166
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/DataTree/index.d.ts +3 -3
- package/dist/lib/Primitives/{List/shiftList.d.ts → Group/groupAll.d.ts} +1 -1
- package/dist/lib/Primitives/List/listInput.d.ts +2 -0
- package/dist/lib/Primitives/Math/sum.d.ts +2 -0
- package/dist/lib/Primitives/String/index.d.ts +3 -0
- package/dist/lib/Primitives/String/joinStrings.d.ts +2 -0
- package/dist/lib/Primitives/String/toString.d.ts +2 -0
- package/dist/lib/Primitives/index.d.ts +2 -1
- package/package.json +1 -1
- /package/dist/lib/Primitives/{List → Group}/cartesianGroups.d.ts +0 -0
- /package/dist/lib/Primitives/{Tree → Group}/index.d.ts +0 -0
- /package/dist/lib/Primitives/{List → Group}/mergeGroup.d.ts +0 -0
- /package/dist/lib/Primitives/{Tree → Group}/mergeTree.d.ts +0 -0
- /package/dist/lib/Primitives/{Tree → Group}/simplifyTree.d.ts +0 -0
- /package/dist/lib/Primitives/{List → Group}/splitGroup.d.ts +0 -0
|
@@ -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,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PrimitiveFunction } from "../../Engine/types";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const groupAll: PrimitiveFunction;
|
|
@@ -2,9 +2,10 @@ import { PrimitiveFunction } from "../Engine/types";
|
|
|
2
2
|
export declare const Lib: {
|
|
3
3
|
Util: Record<string, PrimitiveFunction>;
|
|
4
4
|
Math: Record<string, PrimitiveFunction>;
|
|
5
|
+
String: Record<string, PrimitiveFunction>;
|
|
5
6
|
List: Record<string, PrimitiveFunction>;
|
|
7
|
+
Group: Record<string, PrimitiveFunction>;
|
|
6
8
|
Sequence: Record<string, PrimitiveFunction>;
|
|
7
|
-
Tree: Record<string, PrimitiveFunction>;
|
|
8
9
|
Logic: Record<string, PrimitiveFunction>;
|
|
9
10
|
IO: Record<string, PrimitiveFunction>;
|
|
10
11
|
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|