Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsFullWidth

  • IsFullWidth(validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the property value (string) contains any full-width chars is defined.

    Example

    class IsFullWidthDemo {
    @IsFullWidth()
    alpha:string = 'ひらがな・カタカナ、.漢字'
    }

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

Generated using TypeDoc