adds typings for the 'is-running' package.

This commit is contained in:
Daniel Byrne 2018-08-27 12:56:07 -07:00
parent 1f4678fb27
commit 99efda12b1
4 changed files with 38 additions and 0 deletions

8
types/is-running/index.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
// Type definitions for is-running 2.1
// Project: https://github.com/nisaacson/is-running
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function isRunning(pid: number): boolean;
export = isRunning;

View File

@ -0,0 +1,4 @@
import isRunning = require("is-running");
// $ExpectType boolean
isRunning(100);

View File

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

View File

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