Checks if the given value is a Map without duplicates with regard to the given projection.
Example// Ensure the map does not include duplicate users.
@MapUnique<User>(user => user.id)
usersByEmail: Map<string, User>
Type Parameters
The type of the map's values.
The type returned by projection
.
The function mapping each map entry 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