Merge pull request #10387 from Microsoft/comment_process_type_reference_directives

Explain why we lower-case type reference directives
This commit is contained in:
Mohamed Hegazy 2016-08-17 10:28:29 -07:00 committed by GitHub
commit 09bc2e6b41

View file

@ -2010,6 +2010,7 @@ namespace ts {
}
function processTypeReferenceDirectives(file: SourceFile) {
// We lower-case all type references because npm automatically lowercases all packages. See GH#9824.
const typeDirectives = map(file.typeReferenceDirectives, ref => ref.fileName.toLocaleLowerCase());
const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeDirectives, file.fileName);