0.0.5 • Published 5 years ago
tscer v0.0.5
tscer
a project to transform jsx react components to tsx
install
- npm i -g tscer
usage
- tscer js file you want to compile
- tscer -D dir you want to compile
- tscer revert ts file you want to revert
- tscer -D dir you want to revert
features
- generate IProps according to your PropTypes define
- generate IState according to your state define
- generate types for your plain js function
- generate redux connect to hoc functions
- add generic props to your component