\n\nuseAsyncData with lazy true: \n\n\u003Cimg width=\"786\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/16cfb921-6f91-4c21-adca-e7f0ceb17a26\" />\n\nIn the first case, the error is of type Error, while in the second, it's of type NuxtError, but the statusCode property exists on the error object in both cases. \n\n\u003Cimg width=\"616\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4f2bb910-df49-45d2-a776-e2b720fd212d\" />\n",[2978,2979,2982,2983],{"name":2935,"color":2936},{"name":2980,"color":2981},"types","2875C3",{"name":2939,"color":2940},{"name":2945,"color":2943},31669,"Different types of errors in useLazyAsyncData and useAsyncData with lazy: true.","2025-04-04T14:23:54Z","https://github.com/nuxt/nuxt/issues/31669",0.6912354,{"description":2990,"labels":2991,"number":2996,"owner":2871,"repository":2871,"state":2916,"title":2997,"updated_at":2998,"url":2999,"score":3000},"### Environment\n\n------------------------------\r\n- Operating System: Linux\r\n- Node Version: v20.14.0\r\n- Nuxt Version: 3.12.1\r\n- CLI Version: 3.12.0\r\n- Nitro Version: 2.9.6\r\n- Package Manager: pnpm@9.1.4\r\n- Builder: -\r\n- User Config: ssr, future, components, css, typescript, modules, devtools, eslint, image, i18n, veeValidate\r\n- Runtime Modules: nuxt-icon@0.6.10, @nuxt/eslint@0.3.13, @nuxt/image@1.7.0, @nuxtjs/i18n@8.3.1, @pinia/nuxt@0.5.1, @vee-validate/nuxt@4.12.7\r\n- Build Modules: -\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-69djhq?file=app%2Fapp.vue\n\n### Describe the bug\n\nIf you check out the reproduction and run `nuxt typecheck` you'll see that\r\n```ts\r\nconst { data } = useFetch(\"/api/foo\")\r\nconst foo: string | undefined = data.value\r\n```\r\nreturns an error because the type of `data` still is `unknown | null` instead of corresponding to v4's new `undefined` return type\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2992,2993,2994,2995],{"name":2980,"color":2981},{"name":2910,"color":2911},{"name":2939,"color":2940},{"name":2945,"color":2943},27565,"useAsyncData's return type for data and error still is `| null` in v4","2024-06-12T16:32:54Z","https://github.com/nuxt/nuxt/issues/27565",0.6916817,["Reactive",3002],{},["Set"],["ShallowReactive",3005],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fIh9bgWpCdiNoN69_XLuIrVdF3bS8cX9hkjAeDYEfHuU":-1},"/nuxt/nuxt/24926"]