• Checks if the given value is a Set with a size of exactly size.

    Example

    // Ensure the set has exactly 5 entries.
    @SetSize(5)
    values: Set<string>

    Parameters

    • size: number

      The allowed size of the set.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator

Generated using TypeDoc