From 31fb378dafd65515e1546507a515be6e1cf44067 Mon Sep 17 00:00:00 2001 From: Ilya Mochalov Date: Tue, 24 Nov 2015 04:49:49 +0500 Subject: [PATCH] lodash: signatures of _.isTypedArray have been changed --- lodash/lodash-tests.ts | 16 ++++++++++++++-- lodash/lodash.d.ts | 8 ++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 30c0b9934..d712c9b09 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5121,8 +5121,20 @@ result = _({}).isString(); } // _.isTypedArray -result = _.isTypedArray([]); -result = _([]).isTypedArray(); +module TestIsTypedArray { + { + let result: boolean; + + result = _.isTypedArray([]); + result = _([]).isTypedArray(); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _([]).chain().isTypedArray(); + } +} // _.isUndefined result = _.isUndefined(any); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 73a783b64..a893b0441 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9005,6 +9005,7 @@ declare module _ { interface LoDashStatic { /** * Checks if value is classified as a typed array. + * * @param value The value to check. * @return Returns true if value is correctly classified, else false. */ @@ -9018,6 +9019,13 @@ declare module _ { isTypedArray(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isTypedArray + */ + isTypedArray(): LoDashExplicitWrapper; + } + //_.isUndefined interface LoDashStatic { /**