UNPKG

@loopback/docs

Version:
32 lines (20 loc) 1.04 kB
--- lang: en title: 'API docs: context.configurationresolver' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.context.configurationresolver.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [ConfigurationResolver](./context.configurationresolver.md) ## ConfigurationResolver interface Resolver for configuration of bindings. It's responsible for finding corresponding configuration for a given binding key. By default, `undefined` is expected if no configuration is provided. The behavior can be overridden by setting `optional` to `false` in resolution options. <b>Signature:</b> ```typescript export interface ConfigurationResolver ``` ## Methods | Method | Description | | --- | --- | | [getConfigAsValueOrPromise(key, propertyPath, resolutionOptions)](./context.configurationresolver.getconfigasvalueorpromise.md) | Resolve config for the binding key |