Using PropTypes with TypeScript
About this post
You are using React and want to combine it with TypeScript or vice versa? You might come to the point you might ask yourself how to infer TypeScript types based on PropTypes?
I found the answer in Stefan's blog post:
Thankfully, the prop-types types package gives you some handy tools. All you need is the InferProps generic [.] -- TypeScript and React: Prop Types
There is an alternative blog post about this on dev.to.
I hope this is as helpful for you as it was for me.