This repository was archived by the owner on Nov 20, 2020. It is now read-only.
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
Inline subtype shape inferred as "signature" #95
Open
Description
hi, running into a small bug with sub types being inferred inline:
type SubType = {
name: string;
};
type Props = {
children?: ReactNode;
/** testing */
name: string;
sub?: SubType;
};
function Component({ name = `` }: Props) {
return <>hey</>;
}
is inferred as:
however exporting SubType
from a separate file and importing it works correctly. This is only an issue with type aliases not interfaces.
Metadata
Metadata
Assignees
Labels
No labels