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
import { createApp, ref, provide } from "vue";
import type { InjectionKey, Ref } from "vue";
const app = createApp({});
type Cube = {
size: number;
};
const injectionKeyRef:InjectionKey<Ref<Cube>> = Symbol('key');
app.provide(injectionKeyRef, ref({})) // a type error should be thrown as in the following line
provide(injectionKeyRef, ref({}))
What is expected?
The type of app.provide is same with the type of provide
What is actually happening?
The type of app.provide is different with the type of provide
Vue version
3.4.21
Link to minimal reproduction
link
Steps to reproduce
Check out the reproduction
What is expected?
The type of
app.provide
is same with the type ofprovide
What is actually happening?
The type of
app.provide
is different with the type ofprovide
System Info
No response
Any additional comments?
Related: #8201
The text was updated successfully, but these errors were encountered: