-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
SetupBindings in vue.d.ts should be optional #12717
Comments
I would like to create a pull request for this issue! can someone help me ? |
The change also breaks
|
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.7.8
Reproduction link
stackblitz.com
Steps to reproduce
run npx tsc in terminal.
You will get following error message:
What is expected?
Pass the type checking.
What is actually happening?
I use a Vue component library with Typescript in my project. The component from the library is built on Vue 2.6.
Vue 2.7 changed the vue.d.ts, the type definition generated by Vue 2.6 is not compatible with 2.7.
message.js
message.d.ts
There are 6 type parameters in Vue 2.7.
vue/types/vue.d.ts
SetupBindings in vue.d.ts should be optional.
The text was updated successfully, but these errors were encountered: