I'm moving towards using TypeScript into my application, and I have come to the point where I need to define this:
{ id, label, type, styles, ...props }
in a component like this one:
const TestComponent = ({ id, label, type, styles, ...props }): React.ReactElement => {};
How should I define the ...props part, knowing that the id is a number, label is a string, type is a string, styles is React.CSSProperties?
propswill be of typeany