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 { /**