Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prop opt out #141

Open
alexreardon opened this issue Jul 22, 2020 · 1 comment · Fixed by #152
Open

Prop opt out #141

alexreardon opened this issue Jul 22, 2020 · 1 comment · Fixed by #152
Assignees

Comments

@alexreardon
Copy link

We are finding that our prop types are getting increasingly complex and sophisticated. At some point extract-react-types does not use the TypeScript compiler and it is not reasonable for it to understand the whole breadth of the language.

Can I suggest an opt out?

type Props = {
/* @readonly
….
*/
name: SomeSuperComplexType
}

Perhaps we could put some information in the jsdoc above a prop to tell extract-react-types to not bother trying to understand the type and just print it out as a raw string

@alexreardon
Copy link
Author

Would this be possible @danieldelcore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants