Ninguern
How to properly type the `mergeProps` with Typescript?
Thanks @jesseb34r. I took a look at the answers and came to what I believe it's a good solution.
I've updated my typescript to the
^4.9
version where I could use the satisfies
operator and created a const for the default props.
This seems to be the most organised solution I've found.
Now it looks like this:
3 replies