-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Argument of type 'Plugin_2<any[]>' is not assignable to parameter of type 'Plugin_2<[]>' #7655
Comments
If I remove the options like so:
I get a different error:
|
I dug into the Vue-core test and I don't see what my issue is. |
This might be a Nuxt bug 🤔 |
Someone suggested trying an earlier version of Vue 3 since 3.2.46/47 brought some TypeSript changes.
|
This is actually an issue because I was using |
Vue version
3.2.47
Link to minimal reproduction
Plugin source: https://github.com/mrleblanc101/vue3-transition-expand/tree/types
Steps to reproduce
I'm following the official documentation to create a custom plugin, but I added TypeScript.
It's a very simple plugin that import a single component.
I extend the component to allow overriding the default value of props from the plugin options.
Here is my plugin code:
Here is my import code in a Nuxt 3 app:
What is expected?
The type definition are not infered correctly.
What is actually happening?
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: