Add type definitions for is-array

This commit is contained in:
Pine Mizune
2017-01-31 04:59:37 +09:00
parent 1b51d4d561
commit 13e56d5e4d
4 changed files with 39 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for is-array 1.0
// Project: https://github.com/retrofox/is-array
// Definitions by: Pine Mizune <https://github.com/pine>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = isArray;
declare function isArray(val?: any): boolean;
+8
View File
@@ -0,0 +1,8 @@
import isArray = require('is-array');
isArray();
isArray(null);
isArray(1);
isArray(true);
isArray([]);
isArray({});
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"is-array-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }