| 18 | * Observers to handle life cycle init/start/stop events |
| 19 | */ |
| 20 | export interface LifeCycleObserver { |
| 21 | /** |
| 22 | * The method to be invoked during `init`. It will only be called at most once |
| 23 | * for a given application instance. |
| 24 | */ |
| 25 | init?(...injectedArgs: unknown[]): ValueOrPromise<void>; |
| 26 | /** |
| 27 | * The method to be invoked during `start` |
| 28 | */ |
| 29 | start?(...injectedArgs: unknown[]): ValueOrPromise<void>; |
| 30 | /** |
| 31 | * The method to be invoked during `stop` |
| 32 | */ |
| 33 | stop?(...injectedArgs: unknown[]): ValueOrPromise<void>; |
| 34 | } |
| 35 | |
| 36 | const lifeCycleMethods: (keyof LifeCycleObserver)[] = ['init', 'start', 'stop']; |
| 37 |
no outgoing calls
no test coverage detected