-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Version
2.7.0
Steps to reproduce
vue2.7 getCurrentInstance type was not match vue3 & @vue/composition-api
export function getCurrentInstance(): { proxy: Component } | null {
return currentInstance && { proxy: currentInstance }
}
see:
- https://github.com/vuejs/composition-api/blob/main/src/runtimeContext.ts#L184
- https://github.com/vuejs/core/blob/main/packages/runtime-core/src/component.ts#L213
What is expected?
has correct type
What is actually happening?
not match
uyarn and Xsw1m
Metadata
Metadata
Assignees
Labels
No labels