mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Merge pull request #6909 from chrootsu/lodash-isTypedArray
lodash: signatures of _.isTypedArray have been changed
This commit is contained in:
+14
-2
@@ -5136,8 +5136,20 @@ result = <boolean>_({}).isString();
|
||||
}
|
||||
|
||||
// _.isTypedArray
|
||||
result = <boolean>_.isTypedArray([]);
|
||||
result = <boolean>_([]).isTypedArray();
|
||||
module TestIsTypedArray {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.isTypedArray([]);
|
||||
result = _([]).isTypedArray();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _([]).chain().isTypedArray();
|
||||
}
|
||||
}
|
||||
|
||||
// _.isUndefined
|
||||
result = <boolean>_.isUndefined(any);
|
||||
|
||||
Vendored
+8
@@ -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<T, TWrapper> {
|
||||
/**
|
||||
* see _.isTypedArray
|
||||
*/
|
||||
isTypedArray(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isUndefined
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user