diff --git a/types/find-versions/find-versions-tests.ts b/types/find-versions/find-versions-tests.ts new file mode 100644 index 0000000000..81ea6ca974 --- /dev/null +++ b/types/find-versions/find-versions-tests.ts @@ -0,0 +1,3 @@ +import findVersions = require('find-versions'); + +findVersions('node v1.0.0'); diff --git a/types/find-versions/index.d.ts b/types/find-versions/index.d.ts new file mode 100644 index 0000000000..449c5a45c3 --- /dev/null +++ b/types/find-versions/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for find-versions 2.0 +// Project: https://github.com/sindresorhus/find-versions +// Definitions by: Leonid Logvinov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function findVersions(version: string): string[]; +export = findVersions; diff --git a/types/find-versions/tsconfig.json b/types/find-versions/tsconfig.json new file mode 100644 index 0000000000..19c09a9df8 --- /dev/null +++ b/types/find-versions/tsconfig.json @@ -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"] +} diff --git a/types/find-versions/tslint.json b/types/find-versions/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/find-versions/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }