Browse Source

Merge pull request #1114 in VISUAL/fineui from ~ALAN/fineui:master to master

* commit '74572ff16e8e43bef1d3c8da7ad3dd5ee1992e8e':
  fix: max 和 min 方法使用泛型
  fix: 修改参数
  fix: 修改参数
  fix: 修改类型
  fix: 无jira任务 尽量使用泛型
es6
alan 5 years ago
parent
commit
e0978fc10e
  1. 30
      typescript/core/base.ts

30
typescript/core/base.ts

@ -36,39 +36,39 @@ export interface _base {
size: (collection: any[]|object|string) => number; size: (collection: any[]|object|string) => number;
each: (collection: any[]|object|string, callback?: Function, thisArg?: any) => any; each: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => void)|object|string, thisArg?: any) => any;
map: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; map: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any[];
reduce: (collection: any[]|object|string, callback?: Function, accumulator?: any, thisArg?: any) => any; reduce: <T>(collection: any[]|object|string, callback?: ((total: any, currentValue: T, currentIndex: number) => any)|object|string, thisArg?: any) => any;
reduceRight: (collection: any[]|object|string, callback?: Function, accumulator?: any, thisArg?: any) => any; reduceRight: <T>(collection: any[]|object|string, callback?: ((total: any, currentValue: T, currentIndex: number) => any)|object|string, thisArg?: any) => any;
find: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; find: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any;
filter: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; filter: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[];
reject: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; reject: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[];
every: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean; every: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
all: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean; all: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
some: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean; some: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
any: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; any: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
max: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any; max: <T>(collection: T[]) => T;
min: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any; min: <T>(collection: T[]) => T;
sortBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; sortBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => number)|object|string, thisArg?: any) => any[];
groupBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; groupBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object;
indexBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; indexBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object;
countBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; countBy: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object;
count: (from: number, to: number, predicate: Function) => number; count: (from: number, to: number, predicate: Function) => number;

Loading…
Cancel
Save