-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
199 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ run/ | |
*.log | ||
dist/ | ||
.cache | ||
test/fixtures/*/typings | ||
test/fixtures/app*/typings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ export default appInfo => { | |
|
||
return config; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
export default { | ||
middleware: [ | ||
export const view = '123'; | ||
|
||
export default appInfo => { | ||
const config: any = {}; | ||
|
||
// should change to your own | ||
config.keys = appInfo.name + '_1513135333623_4128'; | ||
|
||
config.middleware = [ | ||
'uuid', | ||
], | ||
]; | ||
|
||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { EggAppConfig, PowerPartial } from 'egg'; | ||
|
||
export default function() { | ||
// built-in config | ||
const config: PowerPartial<EggAppConfig> = {}; | ||
|
||
config.keys = '123123'; | ||
|
||
config.biz = { | ||
type: 'local', | ||
}; | ||
|
||
return config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function() { | ||
return { | ||
otherBizConfig: { | ||
type: 'value', | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import Home from '../../../app/controller/home'; | ||
|
||
declare module 'egg' { | ||
interface IController { | ||
home: Home; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import ExtendApplication from '../../../app/extend/application'; | ||
declare module 'egg' { | ||
type ExtendApplicationType = typeof ExtendApplication; | ||
interface Application extends ExtendApplicationType { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import ExtendContext from '../../../app/extend/context'; | ||
declare module 'egg' { | ||
type ExtendContextType = typeof ExtendContext; | ||
interface Context extends ExtendContextType { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import ExtendIHelper from '../../../app/extend/helper'; | ||
declare module 'egg' { | ||
type ExtendIHelperType = typeof ExtendIHelper; | ||
interface IHelper extends ExtendIHelperType { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import ExtendRequest from '../../../app/extend/request'; | ||
declare module 'egg' { | ||
type ExtendRequestType = typeof ExtendRequest; | ||
interface Request extends ExtendRequestType { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// This file was auto created by egg-ts-helper | ||
// Do not modify this file!!!!!!!!! | ||
|
||
import 'egg'; // Make sure ts to import egg declaration at first | ||
import ExtendResponse from '../../../app/extend/response'; | ||
declare module 'egg' { | ||
type ExtendResponseType = typeof ExtendResponse; | ||
interface Response extends ExtendResponseType { } | ||
} |
Oops, something went wrong.