map.d.ts 621 B

12345678910111213141516171819202122232425
  1. import { XEUtilsMethods } from '../xe-utils'
  2. export declare function mapIterate(item: any, index: number, list: any[]): any;
  3. /**
  4. * 指定方法后的返回值组成的新数组
  5. * @param array 数组
  6. * @param iteratee 回调
  7. * @param context 上下文
  8. */
  9. export declare function map(array: any[], iteratee: typeof mapIterate, context?: any): any[];
  10. declare module '../xe-utils' {
  11. interface XEUtilsMethods {
  12. /**
  13. * 指定方法后的返回值组成的新数组
  14. * @param array 数组
  15. * @param iteratee 回调
  16. * @param context 上下文
  17. */
  18. map: typeof map;
  19. }
  20. }
  21. export default map