props2dts
is a tool that will generate *.d.ts
file next to each *.jsx
. It takes Component.propTypes
properties to know the types
yarn install props2dts --dev
OR
npm install props2dts --save-dev
yarn generate {root_dirname}
For example:
yarn generate ./src