Add support for non async hooks
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ import { createServiceRef } from '../system/types';
|
||||
* @public
|
||||
**/
|
||||
export type BackendLifecycleShutdownHook = {
|
||||
fn: () => Promise<void>;
|
||||
fn: () => void | Promise<void>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user