Skip to content

Private variables in definition files #1867

@paztis

Description

@paztis

When I produced definition files (.d.ts) for my projects, private variables of classes are also present.

Most of the time, I use internal libraries that require others definition files (jquery.d.ts for example), or definition files that are not present in lib.d.ts (Promises.d.ts and TouchEvent.d.ts for example).

But as I use private variables in my classes for wich the type is only defined in these definition files, my project generated definition file contains these types.

So without publish all the other .d.ts files with my project one, it is unusable.

Is there a way to manage it ? Or just remove the private variables to prevent these cases ?

Thanks

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