kindagoose
Version:
Integrate Typegoose with NestJS!
13 lines • 592 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Post = 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 after execution of passed events.
* @param {[PostHook]} hooks - Events that will be handled by this method.
* @constructor
*/
const Post = (...hooks) => (0, common_1.SetMetadata)(kindagoose_constants_1.POST_METADATA_KEY, [...new Set(hooks)]);
exports.Post = Post;
//# sourceMappingURL=post.decorator.js.map