generateJSON with typescript #356
Unanswered
DavidDeSloovere
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I was using
generateJSON
to generate translations into .ts files.generateJSON
produces javascript without types and thus my .ts files were invalid when running typecheck because ofimplicit any
usage.Then I enabled the
jit
option. That looked good. Typecheck pass. But the jitted output does not work in Nuxt server side (Nitro)My question(s):
Can
generateJSON
produce 'valid typed' typescript?Should I just add a comment for the typecheck to ignore the file (
// @ts-nocheck
)?Should the server part actually work and should I be able to enable
jit
option?Beta Was this translation helpful? Give feedback.
All reactions