-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] Types not proper for Vuetify 2.0 #7387
Comments
Moreover, is it possible to export each component's prop types? So user can use it to work with some libraries, e.g., |
I'm really confused - it looks like there are type definitions in the vuetify/types directory, but they don't appear to be used. I am not a typescript expert though, so maybe I'm missing some critical information. |
I managed to get past the error (Cannot use 'new' with an expression whose type lacks a call or construct signature.) by hacking a 'new' definition into the types/index.d.ts:
This probably isn't what you want long term, but it seems to be working for getting things up and running. |
This comment has been minimized.
This comment has been minimized.
None of the aforementioned solutions worked for me. |
@Lobosque if you care about typings for colors you could add |
@TerenceZ i've added PR for 1., could you please create a separate issue for 2.? Some reproduction could be also nice, could be a simplified github repo. Thanks |
Problem to solve
Make Vuetify 2.0 work properly with Typescript and JSX.
Proposed solution
When I use Vuetify 2.0 with Typescript and JSX (created by vue-cli), some types are not proper.
The text was updated successfully, but these errors were encountered: