配置:去除stable服env的特殊处理
This commit is contained in:
2
web-server/typings/app/service/index.d.ts
vendored
2
web-server/typings/app/service/index.d.ts
vendored
@@ -7,7 +7,6 @@ type AnyFunc<T = any> = (...args: any[]) => T;
|
||||
type CanExportFunc = AnyFunc<Promise<any>> | AnyFunc<IterableIterator<any>>;
|
||||
type AutoInstanceType<T, U = T extends CanExportFunc ? T : T extends AnyFunc ? ReturnType<T> : T> = U extends AnyClass ? InstanceType<U> : U;
|
||||
import ExportAuth from '../../../app/service/Auth';
|
||||
import ExportGame from '../../../app/service/Game';
|
||||
import ExportSdk from '../../../app/service/Sdk';
|
||||
import ExportTest from '../../../app/service/Test';
|
||||
import ExportTurboCore from '../../../app/service/TurboCore';
|
||||
@@ -17,7 +16,6 @@ import ExportUtils from '../../../app/service/Utils';
|
||||
declare module 'egg' {
|
||||
interface IService {
|
||||
auth: AutoInstanceType<typeof ExportAuth>;
|
||||
game: AutoInstanceType<typeof ExportGame>;
|
||||
sdk: AutoInstanceType<typeof ExportSdk>;
|
||||
test: AutoInstanceType<typeof ExportTest>;
|
||||
turboCore: AutoInstanceType<typeof ExportTurboCore>;
|
||||
|
||||
Reference in New Issue
Block a user