22 lines
875 B
TypeScript
22 lines
875 B
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 ExportGmUser from '../../../app/service/GmUser';
|
|
import ExportTest from '../../../app/service/Test';
|
|
import ExportUtils from '../../../app/service/Utils';
|
|
import ExportUsers from '../../../app/service/users';
|
|
|
|
declare module 'egg' {
|
|
interface IService {
|
|
gmUser: AutoInstanceType<typeof ExportGmUser>;
|
|
test: AutoInstanceType<typeof ExportTest>;
|
|
utils: AutoInstanceType<typeof ExportUtils>;
|
|
users: AutoInstanceType<typeof ExportUsers>;
|
|
}
|
|
}
|