Skip to content

Form validations type needs fixing. #371

@vdoss

Description

@vdoss

Using any FormComponent in typescript with validations throws following type error.

... is missing the following properties from type 'Validations': contains, equals, isAlpha, isAlphanumeric, and 62 more.

The FormComponent.d.ts needs following change.

type Validations = Partial<{ [Key in keyof Validators]: ParametersAfterFirst<Validators[Key]> }>

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