1 | export interface MapTreeOptions {
|
2 | children?: string;
|
3 | mapChildren?: string;
|
4 | }
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare function mapTree<T, U, C>(array: T[], iterate: (this: C, item: T, index: number, items: T[], path: string[], parent: T, nodes: T[]) => U, options?: MapTreeOptions, context?: C): U[];
|
14 | export declare function mapTree<U, C>(array: any[], iterate: (this: C, item: any, index: number, items: any[], path: string[], parent: any, nodes: any[]) => U, options?: MapTreeOptions, context?: C): U[];
|
15 | export declare function mapTree<U, C>(array: any, iterate: (this: C, item: any, index: number, items: any, path: string[], parent: any, nodes: any) => U, options?: MapTreeOptions, context?: C): U[];
|
16 |
|
17 | declare module './ctor' {
|
18 | interface XEUtilsMethods {
|
19 | mapTree: typeof mapTree;
|
20 | }
|
21 | }
|
22 |
|
23 | export default mapTree
|