Extract TypeScript types as JSON?
I have a Hono server and I want to extract / save the server routes type to either a .d.ts or a .json file. Ideally I would automate it using CLI commands but I can't even manually copy the types out of VSCode because the type get's truncated:
When you hover over the type in VSCode, most of the route types are hidden by ellipses. Is there a way to see the full type and is there a way to convert it to JSON, in a format like:
1 Reply
The doc subcommand is capable of generating documentation for a given module https://docs.deno.com/runtime/manual/tools/documentation_generator/#json-output