Merge pull request #34537 from claasahl/isarray

new package: isarray
This commit is contained in:
Daniel Rosenwasser
2019-04-07 18:24:29 -07:00
committed by GitHub
4 changed files with 38 additions and 0 deletions

9
types/isarray/index.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type definitions for isarray 2.0
// Project: https://github.com/juliangruber/isarray
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
export = isarray;
declare function isarray(p0: any): boolean;

View File

@@ -0,0 +1,4 @@
import isArray from "isarray";
isArray([]); // => true
isArray({}); // => false

View File

@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true
},
"files": [
"index.d.ts",
"isarray-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }