Browse Source

Pull request #3593: 无jira任务 refactor:reduce类型

Merge in VISUAL/fineui from ~JIMMY.CHAI/fineui:es6 to es6

* commit 'c5dfb11f1f354d61ba161802c73ff619136c912e':
  无jira任务 refactor:reduce类型
es6
Jimmy.Chai-柴嘉明 11 months ago
parent
commit
c057e5cd2c
  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