loading...

Discussion on: Notes on TypeScript: Inferring React PropTypes

Collapse
busypeoples profile image
A. Sharif Author

Thanks for the question. Could you build a codesandbox example, so we can see the complete example and then try to fix it from there?

Collapse
pacahon profile image
Sergei

Sure, here it is codesandbox.io/s/weathered-snowfla...
Looks like If disable strict mode in tsconfig.json it works fine.

Thread Thread
busypeoples profile image
A. Sharif Author

Excellent, thanks!
Will try it out and provide some feedback.

Thread Thread
eriksjaastad profile image
Erik Sjaastad

Was this solved? This is one of the few articles using InferProps and thank you so much for writing it!