Export @types/vuelidate's RuleDecl for use in validations()'s vue/types/options function #53891
Unanswered
slaout
asked this question in
Issues with a @types package
Replies: 1 comment
-
Did I do something wrong? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When declaring a component, this works:
Thanks to the
validations
property being forcibly typed to RuleDecl.But this does not work:
Because
RuleDecl
is not exported.And without typing, the whole VueJs file is in error because the compiler does not know what is the type of the returned objet.
I had to redeclare it by copy/pasting this piece of code from vue.d.ts :
Beta Was this translation helpful? Give feedback.
All reactions