LogoRobo.js
Framework

createBoundContext()

Function: createBoundContext()

function createBoundContext(context): Record<string, unknown> & PluginContext

Create 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

ParameterTypeDescription
contextPluginContextPlugin context

Returns

Record<string, unknown> & PluginContext

Bound context object

On this page