Microsoft/TypeScript
View on GitHubFix/fix all to remove TS-specific constructs in JS files
Open
#40,599 opened on Sep 16, 2020
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion
Repository metrics
- Stars
- (48,455 stars)
- PR merge metrics
- (Avg merge 6d 17h) (9 merged PRs in 30d)
Description
Today in a JS file, if you write something like
function foo(x: string) {
}
Type annotations can only be used in TypeScript files.
We should provide a quick fix for these