import { Application } from 'egg' ; import { AppErrorManager } from './AppErrorManager' ; import { AppPluginBase } from '../../basic/AppPluginBase' ; declare module 'egg' { interface Application { errorManager : AppErrorManager ; } } module . exports = ( app ) => { AppPluginBase . LoadToApp ( 'errorManager' , AppErrorManager , app ) ; } ;