You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Volar is capable of checking the slot props type and can assert if the template of a component use them properly.
Until now, you had to provide these types manually, with something like this for vee-validate:
It would be awesome to provide slots types out of the box for vee-validate Form and Field, allowing developers to remove the custom declaration from their applications.
Describe alternatives you've considered
It's possible to manually declare the slot types, but it is cumbersome to do it in every application, and error-prone.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Volar is capable of checking the slot props type and can assert if the template of a component use them properly.
Until now, you had to provide these types manually, with something like this for vee-validate:
This works great, allowing to catch mistakes in a template:
is caught by Volar:
Describe the solution you'd like
Volar now can pick pick up
$slots
definition if provided since https://github.com/johnsoncodehk/volar/blob/master/CHANGELOG.md#02728vue-router
added them in its latest release (see vuejs/router@1b28dd4), allowing to simplify the declaration of the Router components from:to
It would be awesome to provide slots types out of the box for vee-validate Form and Field, allowing developers to remove the custom declaration from their applications.
Describe alternatives you've considered
It's possible to manually declare the slot types, but it is cumbersome to do it in every application, and error-prone.
The text was updated successfully, but these errors were encountered: