UNPKG

nestjs-transaction

Version:

A library that extracts and provides only some of the functions of the 'typeorm-transactional' npm module that are needed to operate in the Nestjs + TypeORM environment

13 lines 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Transactional = void 0; const nestjs_aop_1 = require("@toss/nestjs-aop"); const common_1 = require("../common"); /** * Transaction Decorator (for Method) * @param options Set options for transaction propagation and isolation levels * @returns MethodDecorator */ const Transactional = (options) => (0, nestjs_aop_1.createDecorator)(common_1.TRANSACTION_DECORATOR, options); exports.Transactional = Transactional; //# sourceMappingURL=transactional.decorator.js.map