You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I remember in the past, that responses from Gql... auto created functions were typed, but in my recent project, that is no more.
See my screenshot here: response is any here...
In .nuxt/gql/default.ts I see the OrdersQuery generated, but it is not used somehow?
Does anybody have a clue? It is very annoying that I get those TS errors because responses are any
Expected behaviour
The responses to be typed
Reproduction
No response
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Same here, for SSR code only. Vuejs files seem to be using types from .nuxt/types/imports.d.ts and are typed properly. I can manually change the typeof import in nitro-imports.d.ts from typeof import('#gql-nitro') to typeof import('#gql') and it then works for server side code.
Environment
Describe the bug
I remember in the past, that responses from
Gql...
auto created functions were typed, but in my recent project, that is no more.See my screenshot here:
response
isany
here...In
.nuxt/gql/default.ts
I see theOrdersQuery
generated, but it is not used somehow?Does anybody have a clue? It is very annoying that I get those TS errors because responses are
any
Expected behaviour
The responses to be typed
Reproduction
No response
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: