Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsBase64

  • IsBase64(validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the value is base 64 encoded.

    Example

    class IsBase64Demo {
    @IsBase64()
    p0: string = 'Zg=='
    }

    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 isBase64} check.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    The result of the call to {@link isBase64}

Generated using TypeDoc