diff --git a/index.d.ts b/index.d.ts index 5b3e3f02..f04bffac 100644 --- a/index.d.ts +++ b/index.d.ts @@ -362,7 +362,11 @@ export interface ContextLoader { new (options: ContextLoaderOption): ContextLoaderBase; } -export class EggLoader { +export class EggLoader< + T extends EggCore = EggCore, + Config = any, + Options extends EggLoaderOptions = EggLoaderOptions +> { app: T; eggPaths: string[]; pkg: PlainObject; @@ -370,6 +374,7 @@ export class EggLoader { serverScope: string; plugins: Plugins; config: Config; + options: Options; /** * @constructor @@ -429,6 +434,10 @@ export class EggLoader { */ getLoadUnits(): Array<{ path: string; type: string; }>; + getEggPaths(): string[]; + + getServerEnv(): string; + /** * Load files using {@link FileLoader}, inject to {@link Application} * @param {String|Array} directory - see {@link FileLoader}