Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsSuperString

  • IsSuperString(target: string, validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the property value is a superstring of the argument.

    Example

    class IsSuperStringDemo {
    @IsSuperString('A')
    alpha:string = 'AB'
    }

    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 is greater than the target.

    Parameters

    • vc: ValidationContext

      The validation context.

    • o: any

      The object containing the property to validate.

    Returns boolean

    The result of the call to {@link isSuperString}

Generated using TypeDoc