From 99efda12b1f332fff422d818be40f46ee26f33bd Mon Sep 17 00:00:00 2001 From: Daniel Byrne Date: Mon, 27 Aug 2018 12:56:07 -0700 Subject: [PATCH] adds typings for the 'is-running' package. --- types/is-running/index.d.ts | 8 ++++++++ types/is-running/is-running-tests.ts | 4 ++++ types/is-running/tsconfig.json | 23 +++++++++++++++++++++++ types/is-running/tslint.json | 3 +++ 4 files changed, 38 insertions(+) create mode 100644 types/is-running/index.d.ts create mode 100644 types/is-running/is-running-tests.ts create mode 100644 types/is-running/tsconfig.json create mode 100644 types/is-running/tslint.json diff --git a/types/is-running/index.d.ts b/types/is-running/index.d.ts new file mode 100644 index 0000000000..e573a44193 --- /dev/null +++ b/types/is-running/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for is-running 2.1 +// Project: https://github.com/nisaacson/is-running +// Definitions by: Daniel Byrne +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function isRunning(pid: number): boolean; + +export = isRunning; diff --git a/types/is-running/is-running-tests.ts b/types/is-running/is-running-tests.ts new file mode 100644 index 0000000000..5f8ad2983a --- /dev/null +++ b/types/is-running/is-running-tests.ts @@ -0,0 +1,4 @@ +import isRunning = require("is-running"); + +// $ExpectType boolean +isRunning(100); diff --git a/types/is-running/tsconfig.json b/types/is-running/tsconfig.json new file mode 100644 index 0000000000..3a03f10b96 --- /dev/null +++ b/types/is-running/tsconfig.json @@ -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" + ] +} diff --git a/types/is-running/tslint.json b/types/is-running/tslint.json new file mode 100644 index 0000000000..d88586e5bd --- /dev/null +++ b/types/is-running/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +}