Recently, I encountered an issue with 2 typescript files:
a.ts:
let some : string = "some";
b.ts:
console.log(some);
Surprisingly, when compiling both files together by including them in the tsconfig or command line, there was no error about 'some' being undefined in b.ts. This made me wonder, how can I compile both files separately? It seems odd for them to share the same namespace in this context.