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