mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
semver-compare: fix typings of semverCompare (#40300)
This commit is contained in:
committed by
Sheetal Nandi
parent
ef8b83ff27
commit
db08b832fa
Vendored
+2
-1
@@ -1,8 +1,9 @@
|
||||
// Type definitions for semver-compare 1.0
|
||||
// Project: https://github.com/substack/semver-compare
|
||||
// Definitions by: Kovács Vince <https://github.com/vincekovacs>
|
||||
// Linus Unnebäck <https://github.com/LinusU>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function semverCompare<T>(a: T, b: T): number;
|
||||
declare function semverCompare(a: string, b: string): -1 | 0 | 1;
|
||||
|
||||
export = semverCompare;
|
||||
|
||||
Reference in New Issue
Block a user