merceyz / typescript-to-proptypes

Generate proptypes from typescript declarations
MIT License
53 stars 22 forks source link

Possiblity to work with typescript 4.5.4 #35

Open valerii15298 opened 2 years ago

valerii15298 commented 2 years ago

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 commented 1 year ago

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