diff --git a/types/which-pm-runs/index.d.ts b/types/which-pm-runs/index.d.ts new file mode 100644 index 0000000000..e82b55d923 --- /dev/null +++ b/types/which-pm-runs/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for which-pm-runs 1.0 +// Project: https://github.com/zkochan/packages/tree/master/which-pm-runs +// Definitions by: Chuah Chee Shian +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function whichPMRuns(): undefined | { name: string; version: string }; + +export = whichPMRuns; diff --git a/types/which-pm-runs/tsconfig.json b/types/which-pm-runs/tsconfig.json new file mode 100644 index 0000000000..8d2366030c --- /dev/null +++ b/types/which-pm-runs/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "which-pm-runs-tests.ts" + ] +} diff --git a/types/which-pm-runs/tslint.json b/types/which-pm-runs/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/which-pm-runs/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/which-pm-runs/which-pm-runs-tests.ts b/types/which-pm-runs/which-pm-runs-tests.ts new file mode 100644 index 0000000000..5ca912365c --- /dev/null +++ b/types/which-pm-runs/which-pm-runs-tests.ts @@ -0,0 +1,3 @@ +import whichPMRuns = require('which-pm-runs'); + +whichPMRuns();