Skip to content

Declaration file for the method overload is not emitted correctly #480

@sheetalkamat

Description

@sheetalkamat
class c {
    public Intersects(obj: number): boolean;
    public Intersects(obj: any): boolean {
        return false;
    }
}

Expected:

declare class c {
    Intersects(obj: number): boolean;
}
declare var x: c;

Currently:

declare class c {
    Intersects(obj: number): boolean;
    Intersects(obj: any): boolean;
}
declare var x: c;

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions