I have proptypes shown below
interface Props {
resource: string;
create?: boolean;
route?: string;
}
As can be seen above, create and route are optional props. However, I would like to implement the types such that if create prop is present then route must now be required. Anyone have any ideas how to do this?