UNPKG

436 BTypeScriptView Raw
1/**
2 * Creates a database check.
3 * Can be used on entity property or on entity.
4 * Can create checks with composite columns when used on entity.
5 */
6export declare function Check(expression: string): Function;
7/**
8 * Creates a database check.
9 * Can be used on entity property or on entity.
10 * Can create checks with composite columns when used on entity.
11 */
12export declare function Check(name: string, expression: string): Function;