UNPKG

svogv

Version:

A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.

9 lines (8 loc) 343 B
/** * This decorator is for validation of mandatory fields. * The default message is 'The field {keyName} is required'. * * @param msg The error message shown in case of error. A default value is being provided if omitted. * */ export declare function Required(msg?: string): (target: object, property: string | symbol) => void;