Skip to content
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

fix: update TypeScript types #1805

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: update TypeScript types #1805

wants to merge 1 commit into from

Conversation

G-Rath
Copy link

@G-Rath G-Rath commented Nov 21, 2024

This overhauls the types so that they actually work for Vue 3, being primarily based on the prop types for each component/mixin and tested locally using a project of mine.

They're by no means perfect but they'll mean type checking actually works properly and they can be refined over time - unfortunately I'm not sure if it'll be possible to strictly type everything due to the large degree of freedom around handling object-type options (i.e. trackBy and label, which in theory should be supportable with generics, except with the way Vue types work I'm not sure it'll be possible to actually properly pass generics around), but this should at least get the ball rolling.

As I've only just started exploring this library, I'm happy to be told if a prop should be of a particular type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant