UNPKG

@shons/next-configify

Version:
25 lines 939 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConfigurationRegistry = void 0; const decorators_1 = require("../decorators"); class ConfigurationRegistry { static registerTarget(type) { this.registry.push(type); } static registerAttribute(target, attribute) { (target[decorators_1.VALUE_PROPERTIES_METADATA] || (target[decorators_1.VALUE_PROPERTIES_METADATA] = [])).push(attribute); } static getRegistry() { return this.registry; } static getValueDecoratedAttributes(target) { return target[decorators_1.VALUE_PROPERTIES_METADATA]; } static getValueDecoratedKey(instance, attribute) { return Reflect.getMetadata(decorators_1.VALUE_METADATA, instance, attribute); } } exports.ConfigurationRegistry = ConfigurationRegistry; ConfigurationRegistry.registry = []; //# sourceMappingURL=configuration.registry.js.map