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
Description
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
Labels
No labels