mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for compare-versions
This commit is contained in:
parent
8091b46536
commit
cb3a40f3e4
3
types/compare-versions/compare-versions-tests.ts
Normal file
3
types/compare-versions/compare-versions-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import compareVersions = require('compare-versions');
|
||||
|
||||
compareVersions('1.0.0', '2.0.0');
|
||||
7
types/compare-versions/index.d.ts
vendored
Normal file
7
types/compare-versions/index.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// Type definitions for compare-versions 3.0
|
||||
// Project: https://github.com/omichelsen/compare-versions
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function compareVersions(firstVersion: string, secondVersion: string): number;
|
||||
export = compareVersions;
|
||||
16
types/compare-versions/tsconfig.json
Normal file
16
types/compare-versions/tsconfig.json
Normal 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", "compare-versions-tests.ts"]
|
||||
}
|
||||
1
types/compare-versions/tslint.json
Normal file
1
types/compare-versions/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user