Can't find devtools tool for generating TypeScript types
I could've sworn there used to be a way to auto-generate typescript types for an API endpoint from Nuxt devtools. I can't find it though. Is this a feature that you need a seperate module for, can i just not find it, or was it removed?
3 Replies
Hi @Zusor. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the knowledge sources provided, I don't have specific information about a Nuxt DevTools feature for auto-generating TypeScript types for API endpoints. The documents don't mention such a feature explicitly.
However, it's worth noting that Nuxt does provide some automatic TypeScript support. According to the Nuxt TypeScript documentation, Nuxt automatically generates some TypeScript files:
1.
.nuxt/nuxt.d.ts
: This file contains types for modules you're using and key types Nuxt requires.
2. .nuxt/tsconfig.json
: This file includes recommended basic TypeScript configuration for your project.
Additionally, Nitro (Nuxt's server engine) auto-generates types for API routes.
If you're looking for more specific TypeScript type generation features, you might want to check the latest version of Nuxt DevTools or consider if there was a separate module you were using before. The current knowledge sources don't provide information about a dedicated tool in Nuxt DevTools for generating TypeScript types for API endpoints.
If you can't find the feature you remember, it's possible it might have been removed or changed in a recent update. You may want to check the Nuxt DevTools documentation or GitHub repository for the most up-to-date information on its features.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@124906016063094785> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Ah, I'm not crazy, it was removed https://github.com/nuxt/devtools/issues/753
GitHub
DevTool: Payload, generate schema button missing · Issue #753 · nux...
Environment Environment: - Operating System: Windows_NT - Node Version: v20.15.1 - Nuxt Version: 3.14.159 - CLI Version: 3.15.0 - Nitro Version: 2.10.4 - Package Manager: [email protected] - Builder: - - ...