forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only issue @param suggestions with codefixes in TS
Previously, there were 2 JS errors that were issued as suggestions in TS files. But there was no codefix for these errors, and the errors were incorrect in TS. This PR only issues the JS-specific errors on JS files.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path="fourslash.ts" /> | ||
// @Filename: a.ts | ||
//// /** | ||
//// * @param options - whatever | ||
//// * @param options.zone - equally bad | ||
//// * @param options.ugh - why | ||
//// */ | ||
//// declare function bad(options: any): void | ||
//// | ||
//// /** | ||
//// * @param {number} obtuse | ||
//// */ | ||
//// function worse(): void { | ||
//// arguments | ||
//// } | ||
|
||
goTo.file('a.ts') | ||
verify.getSuggestionDiagnostics([]); | ||
|