UNPKG

393 BTypeScriptView Raw
1declare type UniqueOptions = boolean | string | {
2 name: string;
3 msg: string;
4};
5/**
6 * Sets unique option as specified in options and returns decorator
7 */
8export declare function Unique(options: UniqueOptions): Function;
9/**
10 * Decorator, which sets unique option true for annotated property.
11 */
12export declare function Unique(target: Object, propertyName: string): void;
13export {};