Merge pull request #26126 from 0xProject/feature/semver-sort

Add types for semver-sort
This commit is contained in:
Daniel Rosenwasser
2018-05-29 16:39:58 -07:00
committed by GitHub
4 changed files with 27 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for semver-sort 0.0
// Project: https://github.com/ragingwind/semver-sort
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function desc(versions: string[]): string[];
export = desc;
+3
View File
@@ -0,0 +1,3 @@
import semverSort = require('semver-sort');
semverSort(['1.0.0', '2.0.0']);
+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", "semver-sort-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }