mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 01:43:59 -05:00
Merge pull request #493 from RReverser/patch-1
Fix for importing modules from definitions
This commit is contained in:
@@ -1411,10 +1411,7 @@ module ts {
|
||||
return {
|
||||
getSourceFile: (filename, languageVersion) => {
|
||||
var sourceFile = getSourceFile(filename);
|
||||
|
||||
Debug.assert(!!sourceFile, "sourceFile can not be undefined");
|
||||
|
||||
return sourceFile;
|
||||
return sourceFile && sourceFile.getSourceFile();
|
||||
},
|
||||
getCancellationToken: () => cancellationToken,
|
||||
getCanonicalFileName: (filename) => useCaseSensitivefilenames ? filename : filename.toLowerCase(),
|
||||
|
||||
Reference in New Issue
Block a user