UNPKG

@mwcp/kmore

Version:

midway component for knex, supports declarative transaction and OpenTelemetry

8 lines 788 B
import type { DecoratorExecutorParamBase } from '@mwcp/share'; import type { TrxStatusService } from '../lib/trx-status.service.js'; import type { DecoratorExecutorOptions, GenDecoratorExecutorOptionsExt } from './transactional.types.js'; export declare function genDecoratorExecutorOptionsAsync<T extends object>(optionsBase: DecoratorExecutorParamBase<T>, optionsExt: GenDecoratorExecutorOptionsExt): Promise<DecoratorExecutorOptions>; export declare function before(options: DecoratorExecutorOptions): Promise<void>; export declare function afterReturn(options: DecoratorExecutorOptions): Promise<void>; export declare function afterThrow(options: DecoratorExecutorOptions, trxStatusService: TrxStatusService): never | Promise<never>; //# sourceMappingURL=transactional.helper.d.ts.map