Merge pull request #31335 from BendingBender/is-installed-globally

Add types for is-installed-globally
This commit is contained in:
Nathan Shively-Sanders
2018-12-17 10:25:32 -08:00
committed by GitHub
4 changed files with 36 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for is-installed-globally 0.1
// Project: https://github.com/sindresorhus/is-installed-globally#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = isInstalledGlobally;
declare const isInstalledGlobally: boolean;
@@ -0,0 +1,4 @@
import isInstalledGlobally = require('is-installed-globally');
// $ExpectType boolean
isInstalledGlobally;
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"is-installed-globally-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }