diff --git a/typescript/core/base.ts b/typescript/core/base.ts index 92797bcd5..b9857f8b8 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -36,13 +36,13 @@ export interface _base { size: (collection: any[]|object|string) => number; - each: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + each: (collection: any[]|object|string, callback?: ((index: number, value: T) => void)|object|string, thisArg?: any) => any; - map: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; + map: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any[]; - reduce: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + reduce: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any; - reduceRight: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + reduceRight: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any; find: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; @@ -58,17 +58,17 @@ export interface _base { any: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; - max: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + max: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any; - min: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; + min: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any; - sortBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; + sortBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any[]; - groupBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; + groupBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object; - indexBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; + indexBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object; - countBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; + countBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object; count: (from: number, to: number, predicate: Function) => number;