New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async data return typed data with TypeScript #7884
Comments
same issue: nuxt/typescript#48 |
@deozza what mode are you using? if mode is "universal" (ssr + client navigation) then behavior is normal how it works:
|
Sorry for the late answer. Yes my mode is So I need to change my mode to |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Versions
Reproduction
Additional Details
What is Expected?
I want to use asyncData function to fetch a resource from an API at the page loading. This resource is then used as a typed property with a custom TypeScript class, with its properties and its functions.
What is actually happening?
The property is not typed according to the custom TypeScript class
The text was updated successfully, but these errors were encountered: