Skip to content

Commit

Permalink
chore: update export
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Apr 9, 2018
1 parent 5993a6b commit c8ed882
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions framework-ts/yadan/index.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
import {
AgentWorkerLoader,
AppWorkerLoader,
BaseContextClass,
Controller as EggController,
Service,
Subscription,
} from 'egg'
// import * as egg from 'egg'
import * as egg from 'egg'

import Agent from './lib/agent'
import Application from './lib/application'
import startCluster from './lib/cluster'

// export = {
// ...egg,
// Agent,
// Application,
// startCluster,
// }

export {
startCluster,
Application,
const newEgg = {
...egg,
Agent,
AppWorkerLoader,
AgentWorkerLoader,
EggController as Controller,
Service,
Subscription,
BaseContextClass,
Application,
startCluster,
}
export = newEgg

0 comments on commit c8ed882

Please sign in to comment.