Framework
createBoundContext()
Function: createBoundContext()
function createBoundContext(context): Record<string, unknown> & PluginContextCreate a bound context for a plugin that can be used in middleware.
This creates an object with the plugin's methods bound to the plugin context,
allowing middleware to use this.methodName() syntax.
Parameters
| Parameter | Type | Description |
|---|---|---|
context | PluginContext | Plugin context |
Returns
Record<string, unknown> & PluginContext
Bound context object
