@eclipse-scout/core
Version:
Eclipse Scout runtime
30 lines • 1.2 kB
TypeScript
import { App, AppBootstrapOptions, AppModel, Desktop, Event, EventMap, Session } from './index';
export interface AppInitEvent<T = App> extends Event<T> {
options: AppModel;
}
export interface AppBootstrapEvent<T = App> extends Event<T> {
options: AppBootstrapOptions;
}
export interface AppDesktopReadyEvent<T = App> extends Event<T> {
desktop: Desktop;
}
export interface AppSessionReadyEvent<T = App> extends Event<T> {
session: Session;
}
export interface AppFailEvent<T = App> extends Event<T> {
error: any;
}
export interface AppEventMap extends EventMap {
'prepare': AppInitEvent;
'init': AppInitEvent;
/**
* This event is triggered after the {@link App} has installed its {@link Extension}s (see {@link App#_installExtensions}).
* It can be used to install additional {@link Extension}s (see {@link Extension#install}), but be aware that there is no control over the order these {@link Extension}s are installed.
*/
'installExtensions': Event<App>;
'bootstrap': AppBootstrapEvent;
'desktopReady': AppDesktopReadyEvent;
'sessionReady': AppSessionReadyEvent;
'fail': AppFailEvent;
}
//# sourceMappingURL=AppEventMap.d.ts.map