chore: Rename options, add additional logging

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-11-09 16:02:10 +01:00
parent 7cdc99a002
commit 678a158303
3 changed files with 11 additions and 7 deletions
@@ -31,6 +31,6 @@ export { pluginMetadataServiceRef } from './pluginMetadataServiceRef';
export { lifecycleServiceRef } from './lifecycleServiceRef';
export type {
BackendLifecycle,
ShutdownHookOptions,
BackendLifecycleShutdownHook,
} from './lifecycleServiceRef';
export type { PluginMetadata } from './pluginMetadataServiceRef';
@@ -19,7 +19,7 @@ import { createServiceRef } from '../system/types';
/**
* @public
**/
export type ShutdownHookOptions = {
export type BackendLifecycleShutdownHook = {
fn: () => Promise<void>;
};
@@ -30,7 +30,7 @@ export interface BackendLifecycle {
/**
* Register a function to be called when the backend is shutting down.
*/
addShutdownHook(options: ShutdownHookOptions): void;
addShutdownHook(options: BackendLifecycleShutdownHook): void;
}
/**