-
-
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
Cannot assign narrower EmitsOption type #2362
Labels
Comments
I believe this will be fixed in #2164 |
yyx990803
pushed a commit
that referenced
this issue
Nov 14, 2022
chrislone
pushed a commit
to chrislone/core
that referenced
this issue
Feb 4, 2023
zhangzhonghe
pushed a commit
to zhangzhonghe/core
that referenced
this issue
Apr 12, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0
Reproduction link
https://codesandbox.io/s/vue3-emitsoption-covariance-x3okn
Steps to reproduce
context
in Line 21 (const { emitA } = useAEmitter(context);
).What is expected?
SetupContext<{ a: () => true, b: () => true }>
is assignable toSetupContext<{ a: () => true }>
.What is actually happening?
SetupContext<{ a: () => true, b: () => true }>
is not assignable toSetupContext<{ a: () => true }>
.typescript playground
The text was updated successfully, but these errors were encountered: