svelte-multiselect
svelte-multiselect copied to clipboard
Infer more precise types for `bind:selected` and `let:option`
Figure out if generics (or anything) can be used to infer the type of bind:selected and let:option in slot components correctly from type of options prop. See https://github.com/sveltejs/language-tools/issues/442#issuecomment-726377055 for related question.
Goal is to fix type errors like this:

Yes, this would help a lot!
@janosh I'm up for helping with this, just checking to see if perhaps you're already working on it. Let me know if you'd like a PR for this :)
@joelmukuthu Yes, a PR that fixes this would be amazing. 👍
I have no working branch for this yet so feel free to start fresh from main.