Microsoft/TypeScript

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

Open

#40.599 geöffnet am 16. Sept. 2020

Auf GitHub ansehen
 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)TypeScript (6.726 Forks)batch import
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion

Repository-Metriken

Stars
 (48.455 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

Beschreibung

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