Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IValidator<T>

Type parameters

Hierarchy

  • IValidator

Index

Methods

validate

  • Method to validate model schema.

    Parameters

    • model: T

      the model to be validated.

    • Optional options: ValidateOptions

      optional yup options used upon validation.

    Returns PromiseErrorModel<T>

Optional validateAt

  • Validates model value at path.

    Parameters

    • path: string

      the path in the model to validate.

    • value: object

      the value to be validated.

    • Optional options: ValidateOptions

      optional yup options used upon validation.

    Returns PromiseErrorModel<Partial<T>>

  • Validates using user defined model function extracts at path for result.

    Parameters

    • path: string

      the path in the model to validate.

    • model: T

      the current model

    Returns PromiseErrorModel<Partial<T>>

Generated using TypeDoc