From fee014e7b6321ec508855da114e57d0eaec1f04e Mon Sep 17 00:00:00 2001 From: Brian Zengel Date: Sat, 31 May 2014 00:36:32 -0400 Subject: [PATCH] Fix issue with omit chainable definition not returning LoDashObjectWrapper --- lodash/lodash-tests.ts | 6 +++--- lodash/lodash.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index da60a435d..8a1170c02 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -877,11 +877,11 @@ result = _.omit({ 'name': 'moe', 'age': 40 }, ['age']); result = _.omit({ 'name': 'moe', 'age': 40 }, function (value) { return typeof value == 'number'; }); -result = _({ 'name': 'moe', 'age': 40 }).omit('age'); -result = _({ 'name': 'moe', 'age': 40 }).omit(['age']); +result = _({ 'name': 'moe', 'age': 40 }).omit('age').value(); +result = _({ 'name': 'moe', 'age': 40 }).omit(['age']).value(); result = _({ 'name': 'moe', 'age': 40 }).omit(function (value) { return typeof value == 'number'; -}); +}).value(); result = _.pairs({ 'moe': 30, 'larry': 40 }); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index c363d6806..ab579457a 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -5396,20 +5396,20 @@ declare module _ { * @see _.omit **/ omit( - ...keys: string[]): Omitted; + ...keys: string[]): LoDashObjectWrapper; /** * @see _.omit **/ omit( - keys: string[]): Omitted; + keys: string[]): LoDashObjectWrapper; /** * @see _.omit **/ omit( callback: ObjectIterator, - thisArg?: any): Omitted; + thisArg?: any): LoDashObjectWrapper; } //_.pairs