backend-app-api: update API report
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -17,11 +17,19 @@ export interface Backend {
|
||||
}>,
|
||||
): void;
|
||||
// (undocumented)
|
||||
start(): Promise<void>;
|
||||
start(): Promise<BackendStartupResult>;
|
||||
// (undocumented)
|
||||
stop(): Promise<void>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface BackendStartupResult {
|
||||
beginAt: Date;
|
||||
plugins: PluginStartupResult[];
|
||||
result: 'success' | 'failure';
|
||||
resultAt: Date;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export function createSpecializedBackend(
|
||||
options: CreateSpecializedBackendOptions,
|
||||
@@ -32,4 +40,25 @@ export interface CreateSpecializedBackendOptions {
|
||||
// (undocumented)
|
||||
defaultServiceFactories: ServiceFactory[];
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ModuleStartupResult {
|
||||
failure?: {
|
||||
error: Error;
|
||||
allowed: boolean;
|
||||
};
|
||||
moduleId: string;
|
||||
resultAt: Date;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface PluginStartupResult {
|
||||
failure?: {
|
||||
error: Error;
|
||||
allowed: boolean;
|
||||
};
|
||||
modules: ModuleStartupResult[];
|
||||
pluginId: string;
|
||||
resultAt: Date;
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user