From 87ed13f50b70ba58f254957bac72c77dd619abd2 Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 29 Aug 2019 11:25:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0jira=E4=BB=BB=E5=8A=A1=20?= =?UTF-8?q?=E5=B0=BD=E9=87=8F=E4=BD=BF=E7=94=A8=E6=B3=9B=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index cc1c637dc..92797bcd5 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -36,39 +36,39 @@ export interface _base { size: (collection: any[]|object|string) => number; - each: (collection: any[]|object|string, callback?: Function, thisArg?: any) => any; + each: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; - map: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; + map: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; - reduce: (collection: any[]|object|string, callback?: Function, accumulator?: any, thisArg?: any) => any; + reduce: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; - reduceRight: (collection: any[]|object|string, callback?: Function, accumulator?: any, thisArg?: any) => any; + reduceRight: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; find: (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: (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: (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: (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: (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: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; any: (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: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; - min: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any; + min: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; - sortBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => any[]; + sortBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[]; - groupBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; + groupBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; - indexBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; + indexBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; - countBy: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => object; + countBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => object; count: (from: number, to: number, predicate: Function) => number;