UNPKG

@nova-ts/core

Version:

A serverside framework used to build scalable application

26 lines (24 loc) 687 B
import { NovaConstant } from "./chunk-INEUQFI4.js"; // src/Decorators/Value.ts var CLASS_VALUE_TARGETS = /* @__PURE__ */ new Set(); function getAllValueClassTargets() { return Array.from(CLASS_VALUE_TARGETS); } function Value(path) { return function(target, propertykey) { if (propertykey !== void 0) { Reflect.defineMetadata(NovaConstant.NovaValueMeta, path, target, propertykey); CLASS_VALUE_TARGETS.add(target.constructor); } else { Reflect.defineMetadata(NovaConstant.NovaValueMeta, path, target.prototype); CLASS_VALUE_TARGETS.add(target); } }; } export { getAllValueClassTargets, Value }; //# sourceMappingURL=chunk-ZNABOHQA.js.map