更新:接口
This commit is contained in:
2
web-server/typings/app/controller/index.d.ts
vendored
2
web-server/typings/app/controller/index.d.ts
vendored
@@ -5,11 +5,13 @@ import 'egg';
|
||||
import ExportAccount from '../../../app/controller/account';
|
||||
import ExportGame from '../../../app/controller/game';
|
||||
import ExportHome from '../../../app/controller/home';
|
||||
import ExportUpdate from '../../../app/controller/update';
|
||||
|
||||
declare module 'egg' {
|
||||
interface IController {
|
||||
account: ExportAccount;
|
||||
game: ExportGame;
|
||||
home: ExportHome;
|
||||
update: ExportUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
2
web-server/typings/app/service/index.d.ts
vendored
2
web-server/typings/app/service/index.d.ts
vendored
@@ -11,6 +11,7 @@ import ExportGame from '../../../app/service/Game';
|
||||
import ExportTest from '../../../app/service/Test';
|
||||
import ExportTurboCore from '../../../app/service/TurboCore';
|
||||
import ExportUtils from '../../../app/service/Utils';
|
||||
import ExportUpdate from '../../../app/service/Update';
|
||||
|
||||
declare module 'egg' {
|
||||
interface IService {
|
||||
@@ -19,5 +20,6 @@ declare module 'egg' {
|
||||
test: AutoInstanceType<typeof ExportTest>;
|
||||
turboCore: AutoInstanceType<typeof ExportTurboCore>;
|
||||
utils: AutoInstanceType<typeof ExportUtils>;
|
||||
update: AutoInstanceType<typeof ExportUpdate>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user