diff --git a/types/semver-sort/index.d.ts b/types/semver-sort/index.d.ts new file mode 100644 index 0000000000..63f0a7dca4 --- /dev/null +++ b/types/semver-sort/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for semver-sort 0.0 +// Project: https://github.com/ragingwind/semver-sort +// Definitions by: Leonid Logvinov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function desc(versions: string[]): string[]; +export = desc; diff --git a/types/semver-sort/semver-sort-tests.ts b/types/semver-sort/semver-sort-tests.ts new file mode 100644 index 0000000000..dd34bd0dd1 --- /dev/null +++ b/types/semver-sort/semver-sort-tests.ts @@ -0,0 +1,3 @@ +import semverSort = require('semver-sort'); + +semverSort(['1.0.0', '2.0.0']); diff --git a/types/semver-sort/tsconfig.json b/types/semver-sort/tsconfig.json new file mode 100644 index 0000000000..4cbd8146d6 --- /dev/null +++ b/types/semver-sort/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", "semver-sort-tests.ts"] +} diff --git a/types/semver-sort/tslint.json b/types/semver-sort/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/semver-sort/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }