From 2acc0fe641631c727d91fa20ff73f52ed54ee2b0 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Sat, 28 Nov 2015 09:36:59 +0500 Subject: [PATCH] lodash: signatures of _.isNull 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 bdc08ccdc7..af4f246c58 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5092,10 +5092,25 @@ result = _(Array.prototype.push).isNative(); } // _.isNull -result = _.isNull(any); -result = _(1).isNull(); -result = _([]).isNull(); -result = _({}).isNull(); +module TestIsNull { + { + let result: boolean; + + result = _.isNull(any); + + result = _(1).isNull(); + result = _([]).isNull(); + result = _({}).isNull(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(1).chain().isNull(); + result = _([]).chain().isNull(); + result = _({}).chain().isNull(); + } +} // _.isNumber result = _.isNumber(any); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index ad465c5c39..e6da5f334e 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -8919,9 +8919,10 @@ declare module _ { interface LoDashStatic { /** * Checks if value is null. + * * @param value The value to check. * @return Returns true if value is null, else false. - **/ + */ isNull(value?: any): boolean; } @@ -8932,6 +8933,13 @@ declare module _ { isNull(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isNull + */ + isNull(): LoDashExplicitWrapper; + } + //_.isNumber interface LoDashStatic { /**