Missing props when passed a component that has a union type as props:
import React from 'react';
import { PolymorphicComponent } from 'index';
type ITestA = {
value: "a";
extra: string;
}
type ITestB = {
value: "b";
}
type Test = ITestA | ITestB;
const Test = {} as React.FC<Test>;
const Button = {} as PolymorphicComponent<"button">;
// extra is missing
<Button as={Test} value="a" />
extra should still be required but is omitted from props.
Missing props when passed a component that has a union type as props:
extra should still be required but is omitted from props.