Microsoft/TypeScript

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

Open

#9116 aperta il 13 giu 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (6726 fork)batch import
BugDomain: Module ResolutionHelp WantedVS Code Tracked

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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

Guida contributor