MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / getConfig

Method getConfig

packages/context/src/context.ts:333–343  ·  view source on GitHub ↗

* Resolve configuration for the binding by key * * @param key - Binding key * @param propertyPath - Property path for the option. For example, `x.y` * requests for ` .x.y`. If not set, the ` ` object will be * returned. * @param resolutionOptions - Options for the res

(
    key: BindingAddress,
    propertyPath?: string,
    resolutionOptions?: ResolutionOptions,
  )

Source from the content-addressed store, hash-verified

331 * @param resolutionOptions - Options for the resolution.
332 */
333 async getConfig<ConfigValueType>(
334 key: BindingAddress,
335 propertyPath?: string,
336 resolutionOptions?: ResolutionOptions,
337 ): Promise<ConfigValueType | undefined> {
338 return this.getConfigAsValueOrPromise<ConfigValueType>(
339 key,
340 propertyPath,
341 resolutionOptions,
342 );
343 }
344
345 /**
346 * Resolve configuration synchronously for the binding by key

Callers 2

mainFunction · 0.95

Calls 1

Tested by

no test coverage detected