@@ -13,19 +13,14 @@ import { ConfigLoader, ServiceContainer } from './service-container.js';
1313import { ConfigureProviderOptions , injectedFunction , InjectorContext , ResolveToken , Scope , Token } from '@deepkit/injector' ;
1414import { AppModule , RootModuleDefinition } from './module.js' ;
1515import { EnvConfiguration } from './configuration.js' ;
16- import {
17- DataEventToken ,
18- DispatchArguments ,
19- EventDispatcher ,
20- EventDispatcherDispatchType ,
21- EventListener ,
22- EventListenerCallback ,
23- EventToken ,
24- } from '@deepkit/event' ;
16+ import { DataEventToken , DispatchArguments , EventDispatcher , EventDispatcherDispatchType , EventListener , EventListenerCallback , EventToken } from '@deepkit/event' ;
2517import { ReceiveType , ReflectionClass , ReflectionKind } from '@deepkit/type' ;
2618import { Logger } from '@deepkit/logger' ;
2719import { executeCommand , getArgsFromEnvironment , getBinFromEnvironment } from './command.js' ;
2820
21+ /**
22+ * @internal
23+ */
2924export function setPartialConfig ( target : { [ name : string ] : any } , partial : {
3025 [ name : string ] : any
3126} , incomingPath : string = '' ) {
@@ -160,10 +155,13 @@ class EnvConfigLoader {
160155 }
161156}
162157
158+ /**
159+ * @internal
160+ */
163161export class RootAppModule < T extends RootModuleDefinition > extends AppModule < T > {
164162}
165163
166- export interface AppEvent {
164+ interface AppEvent {
167165 /**
168166 * The command that is about to be executed.
169167 */
@@ -177,12 +175,12 @@ export interface AppEvent {
177175 injector : InjectorContext ;
178176}
179177
180- export interface AppExecutedEvent extends AppEvent {
178+ interface AppExecutedEvent extends AppEvent {
181179 exitCode : number ;
182180}
183181
184182
185- export interface AppErrorEvent extends AppEvent {
183+ interface AppErrorEvent extends AppEvent {
186184 error : Error ;
187185}
188186
@@ -211,13 +209,10 @@ export const onAppError = new DataEventToken<AppErrorEvent>('app.error');
211209export const onAppShutdown = new DataEventToken < AppEvent > ( 'app.shutdown' ) ;
212210
213211/**
214- * This is the smallest available application abstraction in Deepkit.
215- *
216- * It is based on a module and executes registered CLI controllers in `execute`.
217- *
218- * @deepkit /framework extends that with a more powerful Application class, that contains also HTTP and RPC controllers.
212+ * This is the application abstraction in Deepkit.
219213 *
220- * You can use this class for more integrated unit-tests.
214+ * It is based on a module (the root module)
215+ * and executes registered CLI controllers in `execute`.
221216 */
222217export class App < T extends RootModuleDefinition > {
223218 protected envConfigLoader ?: EnvConfigLoader ;
0 commit comments