Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

[QUESTION] How can i get requiredLength attribute of Validators.minLength when i format error message #75

Open
pepe19000 opened this issue Dec 12, 2019 · 0 comments

Comments

@pepe19000
Copy link

ErrorMessage[] => [{
error: "minLength",
format: (label, error) => minLengthFormat(label, error)
}]

export function minLengthFormat(label: string, error: any): string {
return error; //<- HERE
}

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

No branches or pull requests

1 participant