Browse Source

无jira任务 refactor:reduce类型

es6
jimmychai 11 months ago
parent
commit
c5dfb11f1f
  1. 4
      packages/fineui/typescript/core/base.ts

4
packages/fineui/typescript/core/base.ts

@ -52,9 +52,9 @@ export declare function each<T>(collection: T, iteratee?: any, thisArg?: any): T
export declare function map<T, U>(collection: T[] | object | string | null | undefined, callback?: ((index: number, value: T) => U) | object | string, thisArg?: any): U[];
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduce<T, U>(collection: T[] | object | string, callback?: ((currentValue: T, total: U extends T ? U : T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduceRight<T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function reduceRight<T, U>(collection: T[] | object | string, callback?: ((currentValue: T, total: U extends T ? U : T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T): U extends T ? U : T;
export declare function find<T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any): T | undefined;

Loading…
Cancel
Save