@rkmodules/rules 0.0.29 → 0.0.31
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.
|
@@ -40,7 +40,7 @@ export declare function getBranch<T>(tree: Tree<T>, path: string): T[] | void;
|
|
|
40
40
|
* @param fn
|
|
41
41
|
* @returns
|
|
42
42
|
*/
|
|
43
|
-
export declare function mapTree<T, U>(tree: Tree<T>, fn: (item: T, path: string, index: number) => U): Tree<U>;
|
|
43
|
+
export declare function mapTree<T, U>(tree: Tree<T>, fn: (item: T, path: string, index: number) => U | U[]): Tree<U>;
|
|
44
44
|
export declare function mapTreeBranch<T, U>(tree: Tree<T>, fn: (branch: T[], path: string) => U[] | undefined): Tree<U>;
|
|
45
45
|
/**
|
|
46
46
|
* n-ary operation on a tree, branch by branch
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
import { PrimitiveFunction } from "../Engine/types";
|
|
2
|
+
export declare const Lib: {
|
|
3
|
+
Util: Record<string, PrimitiveFunction>;
|
|
4
|
+
Math: Record<string, PrimitiveFunction>;
|
|
5
|
+
List: Record<string, PrimitiveFunction>;
|
|
6
|
+
Sequence: Record<string, PrimitiveFunction>;
|
|
7
|
+
Tree: Record<string, PrimitiveFunction>;
|
|
8
|
+
Logic: Record<string, PrimitiveFunction>;
|
|
9
|
+
};
|
|
2
10
|
export declare const primitives: Record<string, PrimitiveFunction>;
|