-
Notifications
You must be signed in to change notification settings - Fork 344
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
Typescript: 'Function' type of PropType introduced in 0.5.0 is annoying when using Vetur #291
Comments
This isn't just a problem with Vetur by the way, if you wanna use the prop in setup, you'll run into the same problem. |
@ktsn this sounds like a problem for your Type skills ... Got an idea? |
This might be a bug of TypeScript... I've filed an issue on the repo. microsoft/TypeScript#37734 |
This is actually something we can fix in our code. PR #301 |
When using Vetur's template interpolation service, object props cannot be used directly in the template from 0.5.0, without getting syntax errors:
Exposing the user through setup, i.e.
works for Vetur, but then the console will print warnings:
The text was updated successfully, but these errors were encountered: