Skip to content

DI Bag API / index / ObserverErrorCallback

Type Alias: ObserverErrorCallback ​

ts
type ObserverErrorCallback = (this: void, failure: ObserverFailure) => unknown;

Defined in: observers.ts:61

Reports failures from one observer's event callback; its own failures are consumed.

Parameters ​

ParameterDescription
this-
failure-

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#observe-lifecycle-transitions

Ordinary services. Checked composition. Explicit ownership.