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[];