Skip to content

Private class members show up in d.ts files. #10414

Closed
@dbaeumer

Description

@dbaeumer

TypeScript Version: 1.8.x
Code

export class CancellationTokenSource {

    private _token: CancellationToken;

    get token(): CancellationToken {
            ....
    }
}

The generated d.ts file looks like this:

export declare class CancellationTokenSource {
    private _token;
    token: CancellationToken;
}

The d.ts file shouldn't list private _token;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions