Skip to content

Exported variable <variable name> has or is using private name <private name> #6307

Closed
@jeffschwartz

Description

@jeffschwartz

The following code:

class Test {
    constructor(public someting: any){}
}

export let t = new Test("some thing");

produces the following error:

Exported variable 't' has or is using private name 'Test'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CanonicalThis issue contains a lengthy and complete description of a particular problem, solution, or designDocsThe issue relates to how you learn TypeScriptQuestionAn 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