Microsoft/TypeScript

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

Open

#9.116 aberto em 13 de jun. de 2016

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (6.726 forks)batch import
BugDomain: Module ResolutionHelp WantedVS Code Tracked

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

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

Guia do colaborador