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