@decaf-ts/decorator-validation
Version:
simple decorator based validation engine
38 lines • 1.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultSerializationMethod = exports.ModelKeys = void 0;
const decoration_1 = require("@decaf-ts/decoration");
/**
* @description Enum containing metadata keys used for reflection in the model system
* @summary Defines the various Model keys used for reflection and metadata storage.
* These keys are used throughout the library to store and retrieve metadata about models,
* their properties, and their behavior.
*
* @property {string} TYPE - Key for storing design type information
* @property {string} MODEL - Key for identifying model metadata
* @property {string} ANCHOR - Anchor key that serves as a ghost property in the model
* @property {string} CONSTRUCTION - Key for storing construction information
* @property {string} ATTRIBUTE - Key for storing attribute metadata
* @property {string} HASHING - Key for storing hashing configuration
* @property {string} SERIALIZATION - Key for storing serialization configuration
*
* @enum {string}
* @readonly
* @memberOf module:decorator-validation
* @category Model
*/
var ModelKeys;
(function (ModelKeys) {
ModelKeys["DESCRIPTION"] = "description";
ModelKeys["TYPE"] = "design:type";
ModelKeys["MODEL"] = "model";
ModelKeys["ANCHOR"] = "__model";
ModelKeys["CONSTRUCTION"] = "constructed-by";
ModelKeys["ATTRIBUTE"] = "__attributes";
ModelKeys["HASHING"] = "hashing";
ModelKeys["SERIALIZATION"] = "serialization";
ModelKeys["DECORATORS"] = "decorators";
ModelKeys["CONSTRUCTOR"] = "__original";
})(ModelKeys || (exports.ModelKeys = ModelKeys = {}));
exports.DefaultSerializationMethod = "json";
//# sourceMappingURL=constants.js.map