Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsAlphaNumeric

  • IsAlphaNumeric(validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the string contains only letters and numbers (a-zA-Z0-9).

    Example

    class IsAlphaNumericDemo {
    @IsAlphaNumeric() alpha:string = '1a'
    }

    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 isAlphanumeric} 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 isAlphanumeric}

Generated using TypeDoc