HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by goodoldneon | Hacker News Reader
Parent
Full thread
goodoldneon
·
What are you using to codegen the types?
View on HN
darepublic
·
I haven't done it yet. I've just set up a monorepo and prototyped sharing of types from backend to frontend. Googling it seemed like there were some decent options for type generation from swagger, i.e.
https://github.com/drwpow/openapi-typescript
goodoldneon
·
Take a look at
https://github.com/bcherny/json-schema-to-typescript
, too. I used it successfully at a previous job. IIRC, I had to write some code to convert OpenAPI to JSON Schema but it wasn’t onerous
Reply on news.ycombinator.com