-
Notifications
You must be signed in to change notification settings - Fork 152
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
Property 'select' does not exist on type 'Multiselect' #287
Comments
I'm also interested to know how to use the API with Vue3 composition API and |
I had a similar error trying to access To fix that I created a mock ref type: type MultiselectRef = InstanceType<typeof Multiselect> & {
isOpen: boolean;
} in your case will be type MultiselectRef = InstanceType<typeof Multiselect> & {
select: (data: object | string | whatever) => void;
} @adamberecz Perhaps a type definition with all attributes of the ref object would fix further similar issues? |
Could anyone reliably help me with TS issues to put everything in place once and for all in both Vue 2 & 3? If so, please let me know! |
I can do it, will open a PR at some point today. |
@antpngl92 Thanks for your PR! @adamberecz Can this be merged anytime soon? Edit: I have referenced the wrong component, works now. |
This PR fixes an issue I'm having with TypeScript and the |
This should now be fixed in |
Thanks, @adamberecz! |
I use with Vue 3 with TypeScript as code below
When I call
select
method it work fine in development, but when I build it get errorThe text was updated successfully, but these errors were encountered: