Add types for find-versions

This commit is contained in:
Leonid Logvinov
2018-05-29 15:31:34 -07:00
parent 8091b46536
commit 02193e4050
4 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import findVersions = require('find-versions');
findVersions('node v1.0.0');

7
types/find-versions/index.d.ts vendored Normal file
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;

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

View File

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