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

Method buildKeyForConfig

packages/context/src/binding-key.ts:117–121  ·  view source on GitHub ↗

* Build a binding key for the configuration of the given binding. * The format is ` :$config` * * @param key - Key of the target binding to be configured

(key: BindingAddress = '')

Source from the content-addressed store, hash-verified

115 * @param key - Key of the target binding to be configured
116 */
117 static buildKeyForConfig<T>(key: BindingAddress = ''): BindingAddress<T> {
118 const suffix = BindingKey.CONFIG_NAMESPACE;
119 const bindingKey = key ? `${key}:${suffix}` : suffix;
120 return bindingKey;
121 }
122
123 /**
124 * Generate a universally unique binding key.

Callers 7

configureMethod · 0.80
resolveAsViewFromConfigFunction · 0.80
configBindingKeyForFunction · 0.80
keys.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected