From 7af17a2d8e4cab124b1ff689f43f73288435bde6 Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Tue, 29 Oct 2013 18:54:06 -0700 Subject: [PATCH] use generic sub-typing for omit & pick --- lodash/lodash.d.ts | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index b78c92bec..aa1800164 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -3474,24 +3474,24 @@ declare module LoDash { * @param keys The properties to omit. * @return An object without the omitted properties. **/ - omit( - object: any, - ...keys: string[]): any; + omit( + object: T, + ...keys: string[]): Omitted; /** * @see _.omit **/ - omit( - object: any, - keys: string[]): any; + omit( + object: T, + keys: string[]): Omitted; /** * @see _.omit **/ - omit( - object: any, - callback: ObjectIterator, - thisArg?: any): any; + omit( + object: T, + callback: ObjectIterator, + thisArg?: any): Omitted; } //_.pairs @@ -3517,24 +3517,24 @@ declare module LoDash { * @param keys Property names to pick * @return An object composed of the picked properties. **/ - pick( - object: any, - ...keys: string[]): any; + pick( + object: T, + ...keys: string[]): Picked; /** * @see _.pick **/ - pick( - object: any, - keys: string[]): any; + pick( + object: T, + keys: string[]): Picked; /** * @see _.pick **/ - pick( - object: any, + pick( + object: T, callback: ObjectIterator, - thisArg?: any): any; + thisArg?: any): Picked; } //_.transform