Microsoft/TypeScript
Triple slash reference should include extension '.d.ts' or not?
オープン
#9,116 opened on 2016/06/13
BugDomain: Module ResolutionHelp WantedVS Code Tracked
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
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