function addOptions(target, options) {
    var _options = getOptions(target);
    if (!_options) {
        _options = {};
    }
    setOptions(target, __assign({}, _options, options, { validate: __assign({}, (_options.validate || {}), (options.validate || {})) }));
}
/**
 * Adds options be assigning new options to old one
 */
Adds options be assigning new options to old one
Adds options be assigning new options to old one
function addOptions(target, options) {
    var _options = getOptions(target);
    if (!_options) {
        _options = {};
    }
    setOptions(target, __assign({}, _options, options, { validate: __assign({}, (_options.validate || {}), (options.validate || {})) }));
}
function addOptions ( target , options ) { var _options = getOptions ( target ) ; if ( ! _options ) { _options = { } ; } setOptions ( target , __assign ( { } , _options , options , { validate : __assign ( { } , ( _options . validate || { } ) , ( options . validate || { } ) ) } ) ) ; }
Adds options be assigning new options to old one
Adds options be assigning new options to old one