I have encountered an issue where I am attempting to extend two different typescript interfaces, both of which include a classes
field that is not compatible.
It seems that Interface 'Props' cannot extend both types '{ classes: Record; innerRef?: ((instance: any) => void) | RefObject | null | undefined; }' and 'TypographyProps' at the same time. The named property 'classes' in these types is not identical.
What approach should I take to extend these interfaces successfully? Should I opt for one over the other, or is it possible to simply rename one of them?
interface Props extends WithStyles<typeof styles>, TypographyProps {
children: string;
}