Merge pull request #26122 from 0xProject/feature/find-versions

Add types for find-versions
This commit is contained in:
Daniel Rosenwasser
2018-05-29 16:41:08 -07:00
committed by GitHub
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,3 @@
import findVersions = require('find-versions');
findVersions('node v1.0.0');
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for find-versions 2.0
// Project: https://github.com/sindresorhus/find-versions
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function findVersions(version: string): string[];
export = findVersions;
+16
View File
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "find-versions-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }