Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.
This repository was 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

@pepe19000

Description

@pepe19000

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions