Skip to content

Commit 31fb378

Browse files
committed
lodash: signatures of _.isTypedArray have been changed
1 parent ba424f7 commit 31fb378

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

lodash/lodash-tests.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5121,8 +5121,20 @@ result = <boolean>_({}).isString();
51215121
}
51225122

51235123
// _.isTypedArray
5124-
result = <boolean>_.isTypedArray([]);
5125-
result = <boolean>_([]).isTypedArray();
5124+
module TestIsTypedArray {
5125+
{
5126+
let result: boolean;
5127+
5128+
result = _.isTypedArray([]);
5129+
result = _([]).isTypedArray();
5130+
}
5131+
5132+
{
5133+
let result: _.LoDashExplicitWrapper<boolean>;
5134+
5135+
result = _([]).chain().isTypedArray();
5136+
}
5137+
}
51265138

51275139
// _.isUndefined
51285140
result = <boolean>_.isUndefined(any);

lodash/lodash.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9005,6 +9005,7 @@ declare module _ {
90059005
interface LoDashStatic {
90069006
/**
90079007
* Checks if value is classified as a typed array.
9008+
*
90089009
* @param value The value to check.
90099010
* @return Returns true if value is correctly classified, else false.
90109011
*/
@@ -9018,6 +9019,13 @@ declare module _ {
90189019
isTypedArray(): boolean;
90199020
}
90209021

9022+
interface LoDashExplicitWrapperBase<T, TWrapper> {
9023+
/**
9024+
* see _.isTypedArray
9025+
*/
9026+
isTypedArray(): LoDashExplicitWrapper<boolean>;
9027+
}
9028+
90219029
//_.isUndefined
90229030
interface LoDashStatic {
90239031
/**

0 commit comments

Comments
 (0)