@nestjs-cls/transactional
Version:
A nestjs-cls plugin for transactional decorators
14 lines • 609 B
TypeScript
/**
* Get injection token for the Transaction instance.
* If name is omitted, the default instance is used.
*/
export declare function getTransactionToken(connectionName?: string): symbol;
/**
* Inject the Transaction instance directly (that is the `tx` property of the TransactionHost)
*
* Optionally, you can provide a connection name to inject a named instance.
*
* A shorthand for `Inject(getTransactionToken(connectionName))`
*/
export declare function InjectTransaction(connectionName?: string): PropertyDecorator & ParameterDecorator;
//# sourceMappingURL=inject-transaction.decorator.d.ts.map