Skip to content

Commit

Permalink
fix(core): correct type definition of ValidationArgs (vuelidate#1026)
Browse files Browse the repository at this point in the history
remove incorrect use of 'typeof' operator that caused a syntax error (ts(2693))

Co-authored-by: Alexej Rotar <[email protected]>
  • Loading branch information
alexejrotar and Alexej Rotar authored Mar 30, 2022
1 parent c732296 commit e7622d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuelidate/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type ValidationRule <T = any> = ValidationRuleWithParams<any, T> | Valida
export type ValidationRuleCollection <T = any> = Record<string, ValidationRule<T>>;

export type ValidationArgs<T = unknown> = {
[key in keyof T]: ValidationArgs<T[key]> | ValidationRuleCollection<typeof T[key]> | ValidationRule<typeof T[key]>
[key in keyof T]: ValidationArgs<T[key]> | ValidationRuleCollection<T[key]> | ValidationRule<T[key]>
}

export interface RuleResultWithoutParams {
Expand Down

0 comments on commit e7622d8

Please sign in to comment.