Microsoft/TypeScript

Fix/fix all to remove TS-specific constructs in JS files

Open

#40,599 opened on Sep 16, 2020

View on GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (48,455 stars) (6,726 forks)batch import
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion

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

Contributor guide

Fix/fix all to remove TS-specific constructs in JS files · Microsoft/TypeScript#40599 | Good First Issue