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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
When using
computedAsync
in it's basic form:We get a type of
const g: Ref<string>
It would be nice if we could get the type
const g: Ref<string | undefined>
Without this the
template
assumesg
will always be astring
and TS has no issues.For example something like this will throw a runtime error (
Unhandled error during execution of render function
) but not be caught by typescriptReproduction
https://stackblitz.com/edit/vitejs-vite-hmsvky
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: