@loopback/docs
Version:
Documentation for LoopBack 4
34 lines (22 loc) • 1.18 kB
Markdown
---
lang: en
title: 'API docs: context.defaultconfigurationresolver.getconfigasvalueorpromise'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.defaultconfigurationresolver.getconfigasvalueorpromise.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [DefaultConfigurationResolver](./context.defaultconfigurationresolver.md) > [getConfigAsValueOrPromise](./context.defaultconfigurationresolver.getconfigasvalueorpromise.md)
## DefaultConfigurationResolver.getConfigAsValueOrPromise() method
<b>Signature:</b>
```typescript
getConfigAsValueOrPromise<ConfigValueType>(key: BindingAddress<unknown>, configPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | <code>BindingAddress<unknown></code> | |
| configPath | <code>string</code> | |
| resolutionOptions | <code>ResolutionOptions</code> | |
<b>Returns:</b>
`ValueOrPromise<ConfigValueType | undefined>`