ts-react-prop-types
v2.4.0
Published
Generate proptypes from typescript declarations
Downloads
488
Readme
ts-react-prop-types
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.
Install
yarn add ts-react-prop-types --dev
or
npm install ts-react-prop-types --save-dev
Support
| Component type | | | ---------------- | ------------------ | | Class | :heavy_check_mark: | | Function | :heavy_check_mark: | | Const functions | :heavy_check_mark: | | React.memo | :heavy_check_mark: | | React.ForwardRef | :heavy_check_mark: |
License
This project is licensed under the terms of the MIT license.