From 92395854568fa95cec4dc627646c8807503e4e76 Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 6 Aug 2019 18:48:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=8F=E8=BF=B0=E4=BF=AE=E6=94=B9?= 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 68d82b9b3..cc1c637dc 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -44,7 +44,7 @@ export interface _base { reduceRight: (collection: any[]|object|string, callback?: Function, accumulator?: any, thisArg?: any) => any; - find: (collection: any[]|object|string, callback?: Function|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[]; @@ -56,7 +56,7 @@ export interface _base { some: (collection: any[]|object|string, callback?: Function|object|string, thisArg?: any) => boolean; - any: (collection: any[]|object|string, callback?: Function|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;