mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
adds typings for the 'is-running' package.
This commit is contained in:
parent
1f4678fb27
commit
99efda12b1
8
types/is-running/index.d.ts
vendored
Normal file
8
types/is-running/index.d.ts
vendored
Normal 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;
|
||||
4
types/is-running/is-running-tests.ts
Normal file
4
types/is-running/is-running-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import isRunning = require("is-running");
|
||||
|
||||
// $ExpectType boolean
|
||||
isRunning(100);
|
||||
23
types/is-running/tsconfig.json
Normal file
23
types/is-running/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
3
types/is-running/tslint.json
Normal file
3
types/is-running/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user