Skip to content

Commit 078e49d

Browse files
Explicitly supply generic argument for 'compareValues'.
1 parent a1a1ea3 commit 078e49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/tc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ module ts {
375375

376376
// Sort our options by their names, (e.g. "--noImplicitAny" comes before "--watch")
377377
var optsList = optionDeclarations.slice();
378-
optsList.sort((a, b) => compareValues(a.name.toLowerCase(), b.name.toLowerCase()));
378+
optsList.sort((a, b) => compareValues<string>(a.name.toLowerCase(), b.name.toLowerCase()));
379379

380380
// We want our descriptions to align at the same column in our output,
381381
// so we keep track of the longest option usage string.

0 commit comments

Comments
 (0)