1234567891011121314151617181920212223 |
- interface MapTreeOptions {
- children?: string;
- mapChildren?: string;
- }
- 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[];
- 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[];
- 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[];
- declare module './ctor' {
- interface XEUtilsMethods {
- mapTree: typeof mapTree;
- }
- }
- export default mapTree
|