Should we publish index.d.ts to @types
so others can include it in their package.json dev dependencies ?
https://github.com/nuxt/nuxt.js/blob/dev/examples/typescript/index.d.ts
Actually I'm not 100% sure about it, maybe @johnlindquist can give us a hint about it.
I would follow Vue's lead and include types in the actual project:
https://github.com/vuejs/vue/blob/dev/types/index.d.ts
Even if they only using JS, the types file helps tooling (like VS Code) with hints/navigation/etc.
@Atinux after https://github.com/nuxt/nuxt.js/commit/96cf4a0ec4db0e4a4e4471cf8ba7eb14338eca10 you forgot to add index.d.js
in package.json "files".
Nice catch @0pt1m1z3r :+1:
hmm why index.d.js
? and not index.d.ts
@rwatts3 fixed, thanks (https://github.com/nuxt/nuxt.js/commit/e967191167665c49bd7221799fded2d8e5d9541a)
@Atinux does index.d.ts still present in Nuxt 2? I've installed nuxt-edge 2.0.0-25500158.1b46a95 and I don't see it anywhere in the project
It seems that it disappeared, we could add it back after Nuxt 2 release (or if you feel for a PR, that would be great!)
@Atinux I'm ok with waiting till it will be added back in Nuxt 2. Btw, is there any time estimate when Nuxt 2 is going to be released?
Next week @AndrewBogdanovTSS :)
Wow! That's awesome! I will open champagne when this happens! 馃槃
The release date referenced in this thread has come and gone, but it appears that nuxt-edge still does not have TypeScript types available. Is there any chance we can include these as part of a preview, in keeping with the example set by the Vue team?
@Atinux
It seems that it disappeared, we could add it back after Nuxt 2 release (or if you feel for a PR, that would be great!)
Any updates on this ? Is it on the RoadMap ?
I created a Feature Request Issue some days ago with a short preview of a proposal to be able to use Nuxt related things like layout
/ head
around TypeScript @Component
Decorator provided by https://github.com/vuejs/vue-class-component. #4050
I will probably build a PR, it will at least provide support for ComponentOptions. Then we'll see how it goes for more TypeScript support.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
The release date referenced in this thread has come and gone, but it appears that nuxt-edge still does not have TypeScript types available. Is there any chance we can include these as part of a preview, in keeping with the example set by the Vue team?