Page Contents

Home > @loopback/context > DefaultConfigurationResolver > getConfigAsValueOrPromise

DefaultConfigurationResolver.getConfigAsValueOrPromise() method

Signature:

getConfigAsValueOrPromise<ConfigValueType>(key: BindingAddress<unknown>, propertyPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;

Parameters

Parameter Type Description
key [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html)<unknown>
propertyPath string _(Optional)_
resolutionOptions [ResolutionOptions](/doc/en/lb4/apidocs.context.resolutionoptions.html) _(Optional)_

Returns:

ValueOrPromise<ConfigValueType | undefined>