const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('../common/ValidateBy.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/typechecker/IsInt.js
var require_IsInt = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/typechecker/IsInt.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsInt = exports.isInt = exports.IS_INT = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.IS_INT = "isInt";
	/**
	* Checks if value is an integer.
	*/
	function isInt(val) {
		return typeof val === "number" && Number.isInteger(val);
	}
	exports.isInt = isInt;
	/**
	* Checks if value is an integer.
	*/
	function IsInt(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_INT,
			validator: {
				validate: (value, args) => isInt(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be an integer number", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsInt = IsInt;
}) });

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