mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 10:10:08 +00:00
9
types/isarray/index.d.ts
vendored
Normal file
9
types/isarray/index.d.ts
vendored
Normal 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;
|
||||
4
types/isarray/isarray-tests.ts
Normal file
4
types/isarray/isarray-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import isArray from "isarray";
|
||||
|
||||
isArray([]); // => true
|
||||
isArray({}); // => false
|
||||
24
types/isarray/tsconfig.json
Normal file
24
types/isarray/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/isarray/tslint.json
Normal file
1
types/isarray/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user