From 687b997b596824cb48a073eb207d601ce74030bd Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 29 Aug 2019 11:54:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/base.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index b9857f8b8..e9fe1c6bd 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -40,9 +40,9 @@ export interface _base { 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) => any)|object|string, thisArg?: any) => any; + reduce: (collection: any[]|object|string, callback?: ((total: any, currentValue: T, currentIndex: number) => any)|object|string, thisArg?: any) => any; - reduceRight: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => any; + reduceRight: (collection: any[]|object|string, callback?: ((total: any, currentValue: T, currentIndex: number) => any)|object|string, thisArg?: any) => any; find: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any; @@ -62,7 +62,7 @@ export interface _base { 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) => any)|object|string, thisArg?: any) => any[]; + sortBy: (collection: any[]|object|string, callback?: ((firstEl:T, secondEl:T) => number)|object|string, thisArg?: any) => any[]; groupBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => any)|object|string, thisArg?: any) => object;