semver-compare: fix typings of semverCompare (#40300)

This commit is contained in:
Linus Unnebäck
2019-11-18 14:15:17 -08:00
committed by Sheetal Nandi
parent ef8b83ff27
commit db08b832fa
+2 -1
View File
@@ -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;