Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: