From a9ae1737d9f3c7b3a5b05d1290553bb2c79bd599 Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 6 Dec 2019 17:00:44 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-2418=20fix:=20=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=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 e8ecfc3f08..ab3c58813d 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -110,11 +110,11 @@ export interface _base { int2Abc: (num: number) => string; // 数组相关的方法 - first: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; + first: (array: T[] | any, callback?: Function|object|number|string, thisArg?: any) => T; initial: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T[]; - last: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; + last: (array: T[] | any, callback?: Function|object|number|string, thisArg?: any) => T; rest: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T[];