svogv
Version:
A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.
11 lines (10 loc) • 477 B
TypeScript
/**
* The decorator that assures that a string field contains at least a number of characters and a minimum number, too.
* The default message is 'The field {fieldname} needs at least {minlength} characters'.
*
* @param min: The required length.
* @param max: The maximum length.
* @param msg: Optionally a custom message.
*
*/
export declare function StringLength(min: number, max: number, msg?: string): (target: object, property: string | symbol) => void;