Explicitly supply generic argument for 'compareValues'.

This commit is contained in:
Daniel Rosenwasser 2014-08-04 18:29:58 -07:00
parent a1a1ea3f96
commit 078e49dd8b

View file

@ -375,7 +375,7 @@ module ts {
// Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch")
var optsList = optionDeclarations.slice();
optsList.sort((a, b) => compareValues(a.name.toLowerCase(), b.name.toLowerCase()));
optsList.sort((a, b) => compareValues<string>(a.name.toLowerCase(), b.name.toLowerCase()));
// We want our descriptions to align at the same column in our output,
// so we keep track of the longest option usage string.