Say, if I want to extend a component by wrapping it, I would like to avoid define props type again. Vaadin React components indeed export props type, like Button exports ButtonProps. However object of this type is not accepted as a parameter, hence the exported type does not have any purpose.
Say, if I want to extend a component by wrapping it, I would like to avoid define props type again. Vaadin React components indeed export props type, like
Button
exportsButtonProps
. However object of this type is not accepted as a parameter, hence the exported type does not have any purpose.I would expect this to work
But it does not
The workaround is to exclude the offending prop.
export type LinkButtonProps = Omit<ButtonProps, 'dangerouslySetInnerHTML'>;