class-validator-extended - v4.2.0
    Preparing search index...

    Function IsSet

    • Checks if the given value is a Set.

      This is a convenience decorator for @IsInstance(Set).

      // Ensure the value is a Set.
      @IsSet()
      values: Set<string>

      Parameters

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator