Skip to content

Type information is missing for private overloaded methods in .d.ts file #1532

@cschleiden

Description

@cschleiden

When this code:

class Test {
        private test(a: string);
        private test(a: number);
        private test(a: any) {
                console.log(a);
        }

        public test2(a: string);
        public test2(a: number);
        public test2(a: any) {
                console.log(a);
        }
}

new Test();

is compiled with the --declaration flag the output is:

declare class Test {
    private test(a);
    private test(a);
    test2(a: string): any;
    test2(a: number): any;
}

the type information is missing from test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions