added types for which-pm-runs (#37278)

This commit is contained in:
Chuah Chee Shian 2019-08-01 08:21:21 +08:00 committed by Jesse Trinity
parent 2fddf863b3
commit 3b65ce5735
4 changed files with 35 additions and 0 deletions

8
types/which-pm-runs/index.d.ts vendored Normal file
View File

@ -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 <https://github.com/shian15810>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function whichPMRuns(): undefined | { name: string; version: string };
export = whichPMRuns;

View File

@ -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"
]
}

View File

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

View File

@ -0,0 +1,3 @@
import whichPMRuns = require('which-pm-runs');
whichPMRuns();