MapExtension<KeySchema, ValueSchema>
MapExtension<
KeySchema,ValueSchema> =object
Extension methods for map constraints.
Sinceβ
2.0.0
Type Parametersβ
KeySchema: KeySchema extends GenericSchemaβ
The key schema type
ValueSchema: ValueSchema extends GenericSchemaβ
The value schema type
Propertiesβ
minSize(): (min, errorMessage?) => MapConstraint<KeySchema, ValueSchema>β
min:
number
errorMessage?:string
Returns:MapConstraint<KeySchema, ValueSchema>
maxSize(): (max, errorMessage?) => MapConstraint<KeySchema, ValueSchema>β
max:
number
errorMessage?:string
Returns:MapConstraint<KeySchema, ValueSchema>