UNPKG

@decaf-ts/decorator-validation

Version:
35 lines 1.58 kB
import { DecorationKeys } from "@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 */ export 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 || (ModelKeys = {})); export const DefaultSerializationMethod = "json"; //# sourceMappingURL=constants.js.map