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

This commit is contained in:
Linus Unnebäck 2019-11-18 22:15:17 +00:00 committed by Sheetal Nandi
parent ef8b83ff27
commit db08b832fa

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;