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