Based on comments on the post, it seems like you want to generate runtime information from types. This is not possible. TypeScript types do not exist at all at runtime so you cannot generate things from them.
You would have to hack on the compiler (see https://github.com/nonara/ts-patch), or do what e.g zod does and generate types from function calls, which is possible.