DI Bag API / index / ObserverCallback
Type Alias: ObserverCallback
ts
type ObserverCallback = (this: void, event: LifecycleEvent) => unknown;Defined in: observers.ts:56
An asynchronous, non-gating callback for frozen lifecycle events.
Parameters
| Parameter | Description |
|---|---|
this | - |
event | - |
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#observe-lifecycle-transitions