Microsoft/TypeScript

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

Open

#40.599 aperta il 16 set 2020

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)TypeScript (6726 fork)batch import
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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

Guida contributor