diff --git a/typescript/core/base.ts b/typescript/core/base.ts index ab3c58813..e8ecfc3f0 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[] | any, callback?: Function|object|number|string, thisArg?: any) => T; + first: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; initial: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T[]; - last: (array: T[] | any, callback?: Function|object|number|string, thisArg?: any) => T; + last: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T; rest: (array: T[], callback?: Function|object|number|string, thisArg?: any) => T[];