UNPKG

@eggjs/tegg-plugin

Version:

module plugin for egg

10 lines (9 loc) 319 B
import { Application } from 'egg'; import { EggContext } from '@eggjs/tegg-runtime'; export declare class EggContextHandler { private readonly app; constructor(app: Application); getContextCallback(): EggContext; run<R>(eggContext: EggContext, fn: () => Promise<R>): Promise<R>; register(): void; }