-
openapi-typescript-codegen
NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
typehole
TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values
Second step is to generate typescript types from the backend's spec. You can use a library like this.
If you are doing this sort of thing a lot, then you probably want to look into Zod, which can combine your validation code and type declarations into one schema.
There are tools that will generate typescript types from a database. I made one for Postgres. But it also works at "compile time", i.e. it doesn't look at a live database. I am not sure if that is what you are asking?
Looks like you want a development tool, not necessarily at runtime thing, try Typehole. Looks like it's perfect for this. https://github.com/rikukissa/typehole