diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 90595edd2..dbf8b1d5d 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5136,8 +5136,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 80532999a..dd7c459a0 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -9013,6 +9013,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. */ @@ -9026,6 +9027,13 @@ declare module _ { isTypedArray(): boolean; } + interface LoDashExplicitWrapperBase { + /** + * see _.isTypedArray + */ + isTypedArray(): LoDashExplicitWrapper; + } + //_.isUndefined interface LoDashStatic { /**