ArrayExtension<ItemSchema>
ArrayExtension<
ItemSchema> =object
Extension methods for array constraints.
Sinceβ
2.0.0
Type Parametersβ
ItemSchema: ItemSchema extends GenericSchemaβ
The item schema type
Propertiesβ
minLength(): (min, errorMessage?) => ArrayConstraint<ItemSchema>β
min:
number
errorMessage?:string
Returns:ArrayConstraint<ItemSchema>
maxLength(): (max, errorMessage?) => ArrayConstraint<ItemSchema>β
max:
number
errorMessage?:string
Returns:ArrayConstraint<ItemSchema>
length(): (length, errorMessage?) => ArrayConstraint<ItemSchema>β
length:
number
errorMessage?:string
Returns:ArrayConstraint<ItemSchema>
unique(): (errorMessage?) => ArrayConstraint<ItemSchema>β
errorMessage?:
string
Returns:ArrayConstraint<ItemSchema>