Skip to content

TS2134 build error for 2 isolated TS files (shouldn't conflict) #1516

Closed
@jt000

Description

@jt000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions