Skip to content

Commit

Permalink
fix(types): add MessageProps $params types to attributes (vuelidate#1033
Browse files Browse the repository at this point in the history
)
  • Loading branch information
teziovsky authored May 1, 2022
1 parent 2c3e82f commit 8502d1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/validators/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ export function messageParamsFactory(params: {
export interface MessageProps {
$model: string;
$property: string;
$params: object;
$params: { [attr: string] : any };
$validator: string;
$pending: boolean,
$invalid: boolean,
$response: unknown,
$propertyPath: string,
$pending: boolean;
$invalid: boolean;
$response: unknown;
$propertyPath: string;
}

export type ValidatorWrapper = (...args: any[]) => ValidationRule ;

declare function withI18nMessage <T extends (ValidationRule | ValidatorWrapper)>(
declare function withI18nMessage <T extends (ValidationRule | ValidatorWrapper)>(
validator: T,
options?: {
withArguments?: boolean,
Expand Down

0 comments on commit 8502d1a

Please sign in to comment.