Microsoft/TypeScript

Triple slash reference should include extension '.d.ts' or not?

Open

#9,116 建立於 2016年6月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
BugDomain: Module ResolutionHelp WantedVS Code Tracked

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

From @frogcjn on June 13, 2016 6:6

/// <reference path='../../../typings/index.d.ts' />

or

/// <reference path='../../../typings/index' />

?

Thanks!

tsc recognizes the file without .d.ts extension, but vscode's ts validation has a different behavior. This makes a headache communication between typescript coder.

Copied from original issue: Microsoft/vscode#7594

貢獻者指南