Explain why we lower-case type reference directives

This commit is contained in:
Andy Hanson
2016-08-17 06:21:49 -07:00
parent c9d1f0d150
commit c42f1cb0d0

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);