From 74572ff16e8e43bef1d3c8da7ad3dd5ee1992e8e Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 29 Aug 2019 14:03:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20max=20=E5=92=8C=20min=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/core/base.ts b/typescript/core/base.ts index b4868daa2..4a6597e4f 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -58,9 +58,9 @@ export interface _base { any: (collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean; - max: (collection: any[]) => any; + max: (collection: T[]) => T; - min: (collection: any[]) => any; + min: (collection: T[]) => T; sortBy: (collection: any[]|object|string, callback?: ((index: number, value: T) => number)|object|string, thisArg?: any) => any[];