NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/xe-utils/methods/array/toTreeArray.d.ts

27 lines
651 B
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { XEUtilsMethods } from '../xe-utils'
export interface ToTreeArrayOptions {
children?: string;
data?: string;
}
/**
*
* @param {Array} array
* @param {Object} options {children: 'children', data: 'data'}
*/
export declare function toTreeArray(array: any[], options?: ToTreeArrayOptions): any[];
declare module '../xe-utils' {
interface XEUtilsMethods {
/**
*
* @param {Array} array
* @param {Object} options {children: 'children', data: 'data'}
*/
toTreeArray: typeof toTreeArray;
}
}
export default toTreeArray