unique(): (target, key) => void
Property level decorator. Specifies that the property must be unique.
The system will not allow to duplicate values.
Sets {@link PropertyMeta.unique}.
Returns
(target, key): void
Parameters
target
object
key
string
Returns
void