vue-multiselect icon indicating copy to clipboard operation
vue-multiselect copied to clipboard

Typescript Types Improvements for Proper IDE Autocomplete

Open djeikyb opened this issue 4 years ago • 3 comments

I'm using webstorm, and don't get any of the usual ide assistance for the vue-multiselect component. I'm using single file components. For example, when I write a bootstrap-vue component's tag in the template, webstorm will suggest valid property names and even valid values (depending on the type of property). I don't get any of this with vue-multiselect.

As an experiment, I copied the source from node_modules into my project, then uninstalled multiselect, and updated imports. Now ide support works as expected! Not a good workaround, but maybe interesting? Let me know how I can be more helpful with this bug report!

vue: 2.6.10
vue-multiselect: 2.1.6
jetbrains webstorm: 2020.1

djeikyb avatar Apr 21 '20 00:04 djeikyb

@djeikyb It's the same for every other browser. We will try to improve the same. Thanks.

akki-jat avatar Nov 14 '22 17:11 akki-jat

@akki-jat Hello, are there any plans to freeze changes and fully migrate the project to TypeScript? I've recently converted a library (version 2.1.7) to TS in my personal project and immediately noticed one unused getter and several undeclared variables that have been around since 2017. Maybe this could be helpful for future development.

valsaven avatar Apr 03 '23 13:04 valsaven

@valsaven We will surly work to improve TypeScript support. But what approach we take to do that is still not decided.

akki-jat avatar Apr 20 '23 16:04 akki-jat