Microsoft/TypeScript

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

Aperta

#9116 aperta il 13 giu 2016

 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (13.395 fork)batch import
BugDomain: Module ResolutionHelp WantedVS Code Tracked

Metriche repository

Star
 (108.860 stelle)
Metriche merge PR
 (Metriche PR in attesa)

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