diff --git a/types/compare-versions/compare-versions-tests.ts b/types/compare-versions/compare-versions-tests.ts new file mode 100644 index 0000000000..c9b5641f5b --- /dev/null +++ b/types/compare-versions/compare-versions-tests.ts @@ -0,0 +1,3 @@ +import compareVersions = require('compare-versions'); + +compareVersions('1.0.0', '2.0.0'); diff --git a/types/compare-versions/index.d.ts b/types/compare-versions/index.d.ts new file mode 100644 index 0000000000..15a78ef08a --- /dev/null +++ b/types/compare-versions/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for compare-versions 3.0 +// Project: https://github.com/omichelsen/compare-versions +// Definitions by: Leonid Logvinov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function compareVersions(firstVersion: string, secondVersion: string): number; +export = compareVersions; diff --git a/types/compare-versions/tsconfig.json b/types/compare-versions/tsconfig.json new file mode 100644 index 0000000000..851777ad22 --- /dev/null +++ b/types/compare-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", "compare-versions-tests.ts"] +} diff --git a/types/compare-versions/tslint.json b/types/compare-versions/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/compare-versions/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }