UNPKG

svogv

Version:

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

11 lines (10 loc) 442 B
/** * The compare decorator compares two field's values and * shows an error message on the decorated field. The other field (compared to) does * not has a decorator nor receives a message. * * @param withProperty A string that represents the compared field's name. * @param msg A custom message. * */ export declare function Compare(withProperty: string, msg?: string): (target: object, property: string | symbol) => void;