We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AsyncDataRequestStatus
useAsyncData
When using status from useAsyncData and family as a prop, it would be great to be able to type it using AsyncDataRequestStatus from packages/nuxt/src/app/composables/asyncData.ts.
status
e.g. rather than having to do:
<script setup lang="ts"> import type { AsyncData } from "#app"; import type { UnwrapRef } from "vue"; withDefaults( defineProps<{ status: UnwrapRef<AsyncData<any, any>["status"]>; }>(), { status: "success", } ); </script>
You can do:
<script setup lang="ts"> import type { AsyncDataRequestStatus } from "#app"; withDefaults( defineProps<{ status: AsyncDataRequestStatus; }>(), { status: "success", } ); </script>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the feature
When using
status
fromuseAsyncData
and family as a prop, it would be great to be able to type it usingAsyncDataRequestStatus
from packages/nuxt/src/app/composables/asyncData.ts.e.g. rather than having to do:
You can do:
Additional information
Final checks
The text was updated successfully, but these errors were encountered: