text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.BeforeUpdate = void 0;
  var __1 = require("../../");
  var EventListenerTypes_1 = require("../../metadata/types/EventListenerTypes");
  /**
   * Calls a method on which this decorator is applied before this entity update.
   */
  function BeforeUpdate() {
      return function (object, propertyName) {
          __1.getMetadataArgsStorage().entityListeners.push({
              target: object.constructor,
              propertyName: propertyName,
              type: EventListenerTypes_1.EventListenerTypes.BEFORE_UPDATE
          });
      };
  }
  exports.BeforeUpdate = BeforeUpdate;
  
  //# sourceMappingURL=BeforeUpdate.js.map
  