Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

IsISBN

  • IsISBN(target: number, validationOptions?: ValidationOptions): (object: any, propertyName: string) => void
  • Decorator that checks if the property value is an ISBN number.

    Example

    class IsISBNDemo {
    @IsISBN(10)
    e:any = '3-8362-2119-5'
    }

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

Generated using TypeDoc