Page Contents

Home > @loopback/context > ContextObserverFn

ContextObserverFn type

Listen on bind, unbind, or other events

Signature:

export type ContextObserverFn = (eventType: ContextEventType, binding: Readonly<Binding<unknown>>, context: Context) => ValueOrPromise<void>;

References: ContextEventType, Binding, Context, ValueOrPromise