-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fix(reactivity): ensure unref
correctly resolves type for ShallowRef
#11360
Conversation
Size ReportBundles
Usages
|
Could someone please run the ecosystem-cI? Thanks! |
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
The vueuse build failed in ecosystem-ci because vueuse maintains its own definitions of I fixed this issue in PR #4099. |
A similar issue was fixed for I think the fix should be consistent to make |
According to the test case below, core/packages/dts-test/ref.test-d.ts Lines 401 to 411 in ae52a37
Should we change this behavior? |
In this case changing For now the immediate fix for #11356 should be just adding |
Updated. Based on you feedback, would it be reasonable to submit a PR to the export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>
export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T) |
Yes please. |
close #11356
MaybeRef
type to includeShallowRef
inref.ts
.