Microsoft/TypeScript
Triple slash reference should include extension '.d.ts' or not?
开放
#9,116 创建于 2016年6月13日
BugDomain: Module ResolutionHelp WantedVS Code Tracked
仓库指标
- 星标
- (108,860 个星标)
- PR 合并指标
- (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