支付回调
This commit is contained in:
+2
@@ -8,6 +8,7 @@ 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';
|
||||
import ExportUpdate from '../../../app/service/Update';
|
||||
@@ -17,6 +18,7 @@ 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>;
|
||||
update: AutoInstanceType<typeof ExportUpdate>;
|
||||
|
||||
Reference in New Issue
Block a user