Skip to content

danielfalk/typescript-to-proptypes

 
 

Repository files navigation

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 ✔️
Function ✔️
Const functions ✔️
React.memo ✔️
React.ForwardRef ✔️

License

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

About

Generate proptypes from typescript declarations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 86.8%
  • JavaScript 13.2%