8000
Unexported types from "global files" visible with isolatedModules enabled #18504
Labels
Duplicate
An existing issue was already created
8000
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.4.2
tsconfig.json
a.ts
b.ts
c.ts
Expected behavior:
Referring to
c1
froma.ts
should be an error.Actual behavior:
No error regarding
c1
ina.ts
.Comment
From the description of
--isolatedModules
"transpile each file as a separate module" I do not expect types from any file to be visible that I haven't explicitly imported (unless they're coming in throughcompilerOptions.types
or something like that). I get it with--isolatedModules
the disposition ofc1.ts
is basically completely invalid. However, this behavior is very confusing particularly when migrating code bases where there might be a lot of code laying around that hasn't been refactored yet.Is the unexpected behavior coming from the old internal module system?
The text was updated successfully, but these errors were encountered: