@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
32 lines (21 loc) • 1.13 kB
Markdown
lang: en
title: 'API docs: context.contextobserver'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.contextobserver.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [ContextObserver](./context.contextobserver.md)
## ContextObserver interface
Observers of context bind/unbind events
<b>Signature:</b>
```typescript
export interface ContextObserver
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [filter?](./context.contextobserver.filter.md) | [BindingFilter](./context.bindingfilter.md) | <i>(Optional)</i> An optional filter function to match bindings. If not present, the listener will be notified of all binding events. |
| [observe](./context.contextobserver.observe.md) | [ContextObserverFn](./context.contextobserverfn.md) | Listen on <code>bind</code>, <code>unbind</code>, or other events |