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
generateJSONto generate translations into .ts files.generateJSONproduces javascript without types and thus my .ts files were invalid when running typecheck because ofimplicit anyusage.Then I enabled the
jitoption. That looked good. Typecheck pass. But the jitted output does not work in Nuxt server side (Nitro)My question(s):
Can
generateJSONproduce '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
jitoption?Beta Was this translation helpful? Give feedback.
All reactions