MCPcopy
hub / github.com/loopbackio/loopback-next / configure

Method configure

packages/context/src/context.ts:265–271  ·  view source on GitHub ↗

* Create a corresponding binding for configuration of the target bound by * the given key in the context. * * For example, `ctx.configure('controllers.MyController').to({x: 1})` will * create binding `controllers.MyController:$config` with value `{x: 1}`. * * @param key - The key f

(
    key: BindingAddress = '',
  )

Source from the content-addressed store, hash-verified

263 * @param key - The key for the binding to be configured
264 */
265 configure<ConfigValueType = BoundValue>(
266 key: BindingAddress = '',
267 ): Binding<ConfigValueType> {
268 const bindingForConfig = Binding.configure<ConfigValueType>(key);
269 this.add(bindingForConfig);
270 return bindingForConfig;
271 }
272
273 /**
274 * Get the value or promise of configuration for a given binding by key

Callers 2

mainFunction · 0.95
mainFunction · 0.95

Calls 2

addMethod · 0.95
configureMethod · 0.65

Tested by

no test coverage detected