Add types for is-installed-globally

This commit is contained in:
Dimitri Benin
2018-12-12 22:27:25 +01:00
parent 73a3ac3c9f
commit cbbd3e6043
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" }