I am looking for a tool to automatically generate types for the data that's coming back from a rest api in the frontend.
I'm able to this with data from GraphQL thanks to the tool @graphql-codegen/typescript, This plugin generates the base TypeScript types, based on your GraphQL schema.
Now I am wondering if this is also possible for a rest api backend, does anyone know if this possible with any tooling/npm package? Any tips can be useful, I have tried to look through multiple npm packages and other tools but can't find on that I need. Thanks!