Microsoft/TypeScript

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

Open

#40,599 创建于 2020年9月16日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)TypeScript (48,455 star) (6,726 fork)batch import
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion

描述

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

贡献者指南