Type '{ as: FC<Test>; value: "b"; extra: string; }' is not assignable to type 'IntrinsicAttributes & Pick<PropsWithChildren<Test>, "children" | "value"> & HeadingOwnProps & { ...; }'. Property 'extra' does not exist on type 'IntrinsicAttributes & Pick<PropsWithChildren<Test>, "children" | "value"> & HeadingOwnProps & { ...; }'.ts(2322)
Description
Polymorphic component has partialized props if "as" component has unioned props.
Reproduction
Expected behavior
Polymorphic component has correct props types.
Actual behavior