Skip to content

Generate proptypes from typescript declarations

License

Notifications You must be signed in to change notification settings

merceyz/typescript-to-proptypes

Repository files navigation

typescript-to-proptypes

An API for converting TypeScript definitions to PropTypes using the TypeScript Compiler API

Install

yarn add typescript-to-proptypes --dev
or
npm install typescript-to-proptypes --save-dev

Support

Component type
Class ✔️
Function ✔️
Const functions ✔️
React.memo ✔️
React.ForwardRef ✔️

License

This project is licensed under the terms of the MIT license.