Skip to content
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

Using $validationGroups results in Typescript Error (TS2345) #1121

Open
pm-consultancy opened this issue Oct 17, 2022 · 1 comment · May be fixed by #1238
Open

Using $validationGroups results in Typescript Error (TS2345) #1121

pm-consultancy opened this issue Oct 17, 2022 · 1 comment · May be fixed by #1238

Comments

@pm-consultancy
Copy link

Make sure that you are familiar with documentation before submitting an issue.

https://vuelidate-next.netlify.com/

Describe the bug
When defining a rules object with $validationGroups typescript comes with a TS2345 error stating that the $validationGroups on the state object is not filled

To Reproduce
Add $validationGroupus to any rules object
likely culprit:
`export function useVuelidate<
T extends {[key in keyof Vargs]: any},
Vargs extends ValidationArgs = ValidationArgs,
EState extends ExtractState = ExtractState

(
validationsArgs: Ref | Vargs,
state: T | Ref | ToRefs,
globalConfig?: GlobalConfig
): Ref<Validation<Vargs, T>>;
which checks the validation arguments against the state, maybe anOmit` is place?

Expected behavior
no error

Screenshots
afbeelding

@ChenPP
Copy link

ChenPP commented Jun 8, 2023

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants