Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsEqualTo

  • IsEqualTo(target: any, validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the property is equal to the argument.

    Example

    class IsEqualToDemo {
    @IsEqualTo('eq')
    e:string = 'eq'
    }

    Parameters

    Returns (object: any, propertyName: string) => void

      • (object: any, propertyName: string): void
      • Parameters

        • object: any
        • propertyName: string

        Returns void

validateArray

validateValue

  • Value is valid if it passes the {@link isEqualTo} check.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    True if the value is equals the target.

Generated using TypeDoc