import { EggAppConfig , EggAppInfo , PowerPartial } from 'egg' ; export type DefaultConfig = PowerPartial < EggAppConfig & BizConfig > ; export interface BizConfig { sourceUrl : string ; } export default ( appInfo ) => { const config = { } as PowerPartial < EggAppConfig > & BizConfig ; config . sourceUrl = `https://github.com/eggjs/examples/tree/master/${ appInfo . name }` ; config . keys = appInfo . name + '_1535080377796_1746' ; config . middleware = [ ] ; return config ; } ;