An API for converting TypeScript definitions to PropTypes using the TypeScript Compiler API
note: This library is a maintenance fork of typescript-to-proptypes because the original has not been updated for almost 2 years as of the creation of this fork. If the original package becomes actively maintained again, please use that instead.
yarn add ts-react-prop-types --dev
or
npm install ts-react-prop-types --save-dev
Component type | |
---|---|
Class | ✔️ |
Function | ✔️ |
Const functions | ✔️ |
React.memo | ✔️ |
React.ForwardRef | ✔️ |
This project is licensed under the terms of the MIT license.