UNPKG

@eggjs/dal-plugin

Version:
10 lines (9 loc) 540 B
import type { LifecycleHook } from '@eggjs/lifecycle'; import type { ModuleConfigHolder, Logger } from '@eggjs/tegg-types'; import type { EggPrototype, EggPrototypeLifecycleContext } from '@eggjs/metadata'; export declare class TransactionPrototypeHook implements LifecycleHook<EggPrototypeLifecycleContext, EggPrototype> { private readonly moduleConfigs; private readonly logger; constructor(moduleConfigs: Record<string, ModuleConfigHolder>, logger: Logger); preCreate(ctx: EggPrototypeLifecycleContext): Promise<void>; }