babel-plugin-typescript-to-proptypes
babel-plugin-typescript-to-proptypes copied to clipboard
Generate React PropTypes from TypeScript interfaces or type aliases.
# Description Given a union like `type C = A | B`, where `A` and `B` are both interfaces, babel-plugin-typescript-to-prototype generates code requiring that `C` contain all values present in...
Hi there, I've been trying to implement this in our app, and so far so good, but I noticed that the library doesn't support [void function components](https://dev.to/aurora2500/don-t-use-function-components-use-void-function-components-493p). It's mostly a...
Hi, I could not figure out how to use your plugin to add propTypes to my current Typescript React components. I followed your current description, but could not see propTypes...
I'm using this package to have a react js copy of my react typescript components. Is it possible to control the import name? currently its ```js import _pt from 'prop-types';...
Hi, thanks for all your work on this - it's an awesome plugin! I'm running into an issue where if I have a type import from react separate from the...
Thanks for your work on this. I just have a question for which I didn't see an answer in the README or open/closed issues, apologies if I missed it. Would...
I react component library with configuration: storybook, rollup, typescript, react. components use React.forwardRef I tried to generate propTypes for components but it did nothing. It builded without error, but component.propTypes...
## Problem ```babel-plugin-typescript-to-proptypes``` does not support preact. ## Solution Allow the plugin to be configured to use different "pragmas", so it can switch between React, Preact, or Inferno. -- First...
## Problem #8 outlines various different issues that are unsupported by the plugin because the `typeCheck` support doesn't yet exist. ## Solution Use the [`typescript-to-proptypes`](https://github.com/merceyz/typescript-to-proptypes) package to add support for...
I want some help on how to set this up with the `create-react-app --template typescript, I am not sure I am doing something wrong or it's some issue from the...