Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Overloading a function doesn't generate all of the signatures #22

Open
@ocombe

Description

@ocombe

When I try to overload a function it doesn't add the overloaded signature to the api file like it does for class methods.

Code of the function:

export function registerLocaleData(data: any, extraData?: any): void;
export function registerLocaleData(data: any, localeId?: string, extraData?: any): void;
export function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void {
  ...
}

Declarations generated by typescript:

export declare function registerLocaleData(data: any, extraData?: any): void;
export declare function registerLocaleData(data: any, localeId?: string, extraData?: any): void;

Api file:

export declare function registerLocaleData(data: any, extraData?: any): void;

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