Files
ZYZ/web-server/typings/app/service/index.d.ts
2022-04-06 10:45:03 +08:00

28 lines
1.2 KiB
TypeScript

// This file is created by egg-ts-helper@1.25.8
// Do not modify this file!!!!!!!!!
import 'egg';
type AnyClass = new (...args: any[]) => any;
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 ExportSdk from '../../../app/service/Sdk';
import ExportTest from '../../../app/service/Test';
import ExportTurboCore from '../../../app/service/TurboCore';
import ExportUpdate from '../../../app/service/Update';
import ExportUtils from '../../../app/service/Utils';
import ExportWjx from '../../../app/service/Wjx';
declare module 'egg' {
interface IService {
auth: AutoInstanceType<typeof ExportAuth>;
sdk: AutoInstanceType<typeof ExportSdk>;
test: AutoInstanceType<typeof ExportTest>;
turboCore: AutoInstanceType<typeof ExportTurboCore>;
update: AutoInstanceType<typeof ExportUpdate>;
utils: AutoInstanceType<typeof ExportUtils>;
wjx: AutoInstanceType<typeof ExportWjx>;
}
}