Skip to content

Validations type is too restrictive #729

Description

@ugostack

Hello everyone,

If we want to pass some specific validation like a RegExp object, it seems that the type is too restrictive. It supports only a Record of string, Validation where Validation is a string, boolean or a validation function.

https://github.com/formsy/formsy-react/blob/master/src/interfaces.ts#L22

I think that the Validation should support RegExp :)

Thank you in advance,

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions