Microsoft/TypeScript

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

开放

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

 (3 条评论) (1 个反应) (0 位负责人)TypeScript (13,395 个派生)batch import
Domain: LS: Quick FixesEffort: ModerateHelp WantedNeeds ProposalSuggestion

仓库指标

星标
 (108,860 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南