@decaf-ts/db-decorators
Version:
Agnostic database decorators and repository
16 lines • 765 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
const constants_1 = require("./constants.cjs");
/**
* @description Generates a key for update validation metadata.
* @summary Builds the key to store as metadata under Reflections for update validation by prefixing the provided key with the update validation prefix.
* @param {string} key - The base key to be prefixed
* @return {string} The complete metadata key for update validation
* @function updateKey
* @memberOf module:db-decorators
*/
decorator_validation_1.Validation.updateKey = function (key) {
return constants_1.UpdateValidationKeys.REFLECT + key;
};
//# sourceMappingURL=validation.js.map