Skip to content

Don't emit #private in type declaration #62486

@ArnaudBarre

Description

@ArnaudBarre

🔍 Search Terms

dts private

✅ Viability Checklist

⭐ Suggestion

Don't emit #private in dts for Classes with one or multiple private fields

📃 Motivating Example

When opening a dts in node_modules that contains this, because it's outside of any tsconfig, you get an annoying: Private identifiers are only available when targeting ECMAScript 2015 and higher. ts(18028) in VSCode which brings a lot of attention to a line that as no benefits for the consumer.

💻 Use Cases

  1. What do you want to use this for?
  2. What shortcomings exist with current approaches?
  3. What workarounds are you using in the meantime?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions