We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
ValidationRule
helpers.withParams
helpers.regex
Describe the solution you'd like
export type ValidationRule <T = any> = ValidationRuleWithParams<any, T> | ValidationRuleWithoutParams<T> | ValidatorFn<T>;
to
export type ValidationRule <T = any, P extends object = object> = ValidationRuleWithParams<P, T> | ValidationRuleWithoutParams<T> | ValidatorFn<T>;
withParams: <T = unknown>(params: object, validator: ValidationRule<T>) => ValidationRuleWithParams
withParams: <T = unknown, P extends object = object>(params: P, validator: ValidationRule<T>) => ValidationRuleWithParams<P, T>
regex: Function
regex: <T = any, K = any, S = any>(regex: RegExp)=>ValidatorFn< T, K, S>
With this one I'm not really sure about the return type.
Describe alternatives you've considered
Additional context Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Please feel free to open a PR.
Sorry, something went wrong.
types(validators): change type of helpers.regex from Function to …
Function
ef74a46
…more explicit type the type `Function` was not very explicit about what parameters the function needs or what it returns closes vuelidate#1115
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
ValidationRule
doesn't have the possibility to pass the Params type to the generichelpers.withParams
doesn't have the possibiltiy to pass the Params type neitherhelpers.regex
doesn't habe a ReturnType at allDescribe the solution you'd like
to
to
to
With this one I'm not really sure about the return type.
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: