Closed
Description
This is related to DefinitelyTyped/DefinitelyTyped#2734
See repo at https://github.com/jt000/RepoForTypescriptBuildIssue
The issue is that in a single project I have two TS files that are for separate scenarios, which don't overlap in functionality (common for nodejs projects that have client, server, and test code in one project). Since there is a commonly named variable with different types the typescript compiler throws the TS2134 build error. However, since neither TS files share common references this should be allowed.