Re:Design Doc: Use JavaScript instead of TypeScript for inte...
by mikewhy on Monday June 08, 2020 @11:21PM
(#23463336)
You would end up defining PropTypes, and ESLint is capable of keeping you in check there.
It's much worse than just using TypeScript (only at runtime, PropTypes aren't that useful anywhere else, PropType syntax doesn't match Flow, TS, or jsdoc, ESLint can't check any PropTypes you spread in), but it can get you by in a pinch.
It's much worse than just using TypeScript (only at runtime, PropTypes aren't that useful anywhere else, PropType syntax doesn't match Flow, TS, or jsdoc, ESLint can't check any PropTypes you spread in), but it can get you by in a pinch.