Page Contents
Home > @loopback/context > Context > getConfigSync
Context.getConfigSync() method
Resolve configuration synchronously for the binding by key
Signature:
getConfigSync<ConfigValueType>(key: BindingAddress, propertyPath?: string, resolutionOptions?: ResolutionOptions): ConfigValueType | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
|
key |
Binding key | |
|
propertyPath |
string |
(Optional) Property path for the option. For example, |
|
resolutionOptions |
(Optional) Options for the resolution. |
Returns:
ConfigValueType | undefined