const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidationMetadata$1 = require('../../metadata/ValidationMetadata.js');
const require_MetadataStorage$1 = require('../../metadata/MetadataStorage.js');
const require_ValidationTypes$1 = require('../../validation/ValidationTypes.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/Allow.js
var require_Allow = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/Allow.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	const ValidationTypes_1 = require_ValidationTypes$1.require_ValidationTypes();
	const ValidationMetadata_1 = require_ValidationMetadata$1.require_ValidationMetadata();
	const MetadataStorage_1 = require_MetadataStorage$1.require_MetadataStorage();
	/**
	* If object has both allowed and not allowed properties a validation error will be thrown.
	*/
	function Allow(validationOptions) {
		return function(object, propertyName) {
			const args = {
				type: ValidationTypes_1.ValidationTypes.WHITELIST,
				target: object.constructor,
				propertyName,
				validationOptions
			};
			(0, MetadataStorage_1.getMetadataStorage)().addValidationMetadata(new ValidationMetadata_1.ValidationMetadata(args));
		};
	}
	exports.Allow = Allow;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_Allow();
  }
});