Merge pull request #6909 from chrootsu/lodash-isTypedArray

lodash: signatures of _.isTypedArray have been changed
This commit is contained in:
Masahiro Wakame
2015-11-27 00:59:05 +09:00
2 changed files with 22 additions and 2 deletions
+14 -2
View File
@@ -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);
+8
View File
@@ -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 {
/**