kindagoose
Version:
Integrate Typegoose with NestJS!
13 lines • 590 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pre = void 0;
const common_1 = require("@nestjs/common");
const kindagoose_constants_1 = require("../constants/kindagoose.constants");
/**
* Method, that marked with this decorator will be called before the execution of passed events.
* @param {[PreHook]} hooks - Events that will be handled by this method.
* @constructor
*/
const Pre = (...hooks) => (0, common_1.SetMetadata)(kindagoose_constants_1.PRE_METADATA_KEY, [...new Set(hooks)]);
exports.Pre = Pre;
//# sourceMappingURL=pre.decorator.js.map