Add types for detect-node (#27684)

This commit is contained in:
Leonid Logvinov 2018-07-30 21:53:09 +02:00 committed by Sheetal Nandi
parent 5ecc5c6e55
commit 9dd304c111
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import isNode = require("detect-node");
isNode;

8
types/detect-node/index.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
// Type definitions for detect-node 2.0
// Project: https://github.com/iliakan/detect-node
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
declare const isNode: boolean;
export = isNode;

View File

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

View File

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