Skip to main content
Version: 5.2

EntityValidator

Index

Constructors

constructor

Methods

validate

validateEmptyWhere

validateParams

  • validateParams(params: any, type?: string, field?: string): void
  • Parameters

    • params: any
    • type: string = 'search condition'
    • optionalfield: string

    Returns void

validatePrimaryKey

validateProperty

  • validateProperty<T>(prop: EntityProperty<any>, givenValue: any, entity: T): any

validateRequired

  • validateRequired<T>(entity: T): void
  • Type parameters

    Parameters

    • entity: T

    Returns void