News for hackers. Stuff that matters.
Re:Practical Front-End Architecture by emilecantin on Tuesday September 21, 2021 @11:32AM (#28606042)
Not the user you were asking, but the way we do it is that the OpenAPI/Swagger spec is auto-generated from server-side code (a C# .NET app with the ABP framework) during the CI build, and that is then used to auto-generate an API client (via swagger-typescript-api) which is what the frontend app uses.

When the backend team makes some changes, they notify the front-end team which then runs the auto-generation script, fixes the typescript errors (if there were breaking changes), and that's it. Pretty nice setup, IMO.

Re:Practical Front-End Architecture by rattray on Tuesday September 21, 2021 @11:35AM (#28606081)
Nice!

Why not re-run the auto-generation script automatically?

Re:Practical Front-End Architecture by emilecantin on Tuesday September 21, 2021 @02:40PM (#28608257)
We use these types all over the app, manual intervention is very often needed.