diff --git a/typescript/core/base.ts b/typescript/core/base.ts index b6d7e795d0..e8ecfc3f08 100644 --- a/typescript/core/base.ts +++ b/typescript/core/base.ts @@ -40,7 +40,7 @@ export interface _base { each: (collection: T[]|object|string, callback?: ((index: number, value: T) => void)|object|string, thisArg?: any) => any; - map: (collection: T[]|object|string, callback?: ((index: number, value: T) => U)|object|string, thisArg?: any) => U[]; + map: (collection: T[]|object|string|null|undefined, callback?: ((index: number, value: T) => U)|object|string, thisArg?: any) => U[]; reduce: (collection: T[]|object|string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T)|object|string, initialValue?: U|T) => U extends T ? U : T;