Re:Show HN: Remult – a CRUD framework for full-stack TypeScript
by goodoldneon on Sunday May 22, 2022 @02:14PM
(#31471100)
What are you using to codegen the types?
[ Parent
| on HN ]
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript
by darepublic on Sunday May 22, 2022 @06:12PM
(#31473325)
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
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript
by goodoldneon on Sunday May 22, 2022 @07:02PM
(#31473664)
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