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

Possiblity to work with typescript 4.5.4 #35

Open
valerii15298 opened this issue Jan 17, 2022 · 1 comment
Open

Possiblity to work with typescript 4.5.4 #35

valerii15298 opened this issue Jan 17, 2022 · 1 comment

Comments

@valerii15298
Copy link

valerii15298 commented Jan 17, 2022

Hello. Thank you for such a great library. I am working with front end and want to generate prop-types from typescript. Is there sense to use it in modern stack? And it's there opportunity for it to work with recent versions of typescript?
I wanna understand is it possible to use this library for modern project and whether it's the sense to do so.
(In my project I use typescript 4.5.4 so I am not sure if I can use it since here is used different version)

@maurer2
Copy link

maurer2 commented Aug 31, 2023

Hello, the library uses TypeScript 3.8, but modern TypeScript versions can be used (albeit in a hacky way) via the overrides feature in the package.json, e.g.

{
  "overrides": {
    "typescript-to-proptypes": {
      "typescript": "5.2.2"
    }
  }
}

Cheers

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

No branches or pull requests

2 participants