import { initOrUpdateProperty } from './init-or-update-property.function';
export function Property(opts) {
    if (opts === void 0) { opts = {}; }
    return function (target, propertyKey) {
        if (typeof propertyKey === 'string') {
            var propertyOptions = {
                name: propertyKey,
                nameDb: opts.name || propertyKey,
            };
            initOrUpdateProperty(propertyOptions, target, propertyKey);
        }
    };
}
//# sourceMappingURL=property.decorator.js.map