-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
export function Foo({ x, y, z }: { x: number, y: string, z: boolean }) {
}
Foo.defaultProps = {
x: 0,
};
Foo.defaultProps = {
y: ""
};
Expected
Either
export declare function Foo({ x, y, z }: {
x: number;
y: string;
z: boolean;
}): void;
export namespace Foo {
export let defaultProps: { y: string };
}
or
export declare function Foo({ x, y, z }: {
x: number;
y: string;
z: boolean;
}): void;
export namespace Foo {
export let defaultProps: { x: number };
}
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesFixedA PR has been merged for this issueA PR has been merged for this issue