From 124f57d6ee61a4eeb7c52c2128f4b6e31f200389 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sun, 20 Dec 2015 18:04:24 +0500 Subject: [PATCH] lodash: signatures of _.isUndefined have been changed --- lodash/lodash-tests.ts | 23 +++++++++++++++++++---- lodash/lodash.d.ts | 10 +++++++++- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index d661839d5..1a76d9fa5 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5730,10 +5730,25 @@ module TestIsTypedArray { } // _.isUndefined -result = _.isUndefined(any); -result = _(1).isUndefined(); -result = _([]).isUndefined(); -result = _({}).isUndefined(); +module TestIsUndefined { + { + let result: boolean; + + result = _.isUndefined(any); + + result = _(1).isUndefined(); + result = _([]).isUndefined(); + result = _({}).isUndefined(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isUndefined(); + result = _([]).chain().isUndefined(); + result = _({}).chain().isUndefined(); + } +} // _.lt module TestLt { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 4e86afb66..764be6790 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9687,9 +9687,10 @@ declare module _ { interface LoDashStatic { /** * Checks if value is undefined. + * * @param value The value to check. * @return Returns true if value is undefined, else false. - **/ + */ isUndefined(value: any): boolean; } @@ -9700,6 +9701,13 @@ declare module _ { isUndefined(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isUndefined + */ + isUndefined(): LoDashExplicitWrapper; + } + //_.lt interface LoDashStatic { /**