Checks if the given value is a Set without duplicate values with regard to the given projection.
Example// Ensure the set does not include duplicate users.
@SetUnique<User>(user => user.id)
administrators: Set<User>
Type Parameters
The type of the set's values.
The type returned by projection
.
The function mapping each value to the value that is used for the uniqueness check.
Optional
options: ValidationOptions
Generic class-validator options.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4