@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (23 loc) • 1.38 kB
Markdown
---
lang: en
title: 'API docs: context.defaultconfigurationresolver.getconfigasvalueorpromise'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context
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>, propertyPath?: string, resolutionOptions?: ResolutionOptions): ValueOrPromise<ConfigValueType | undefined>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | [BindingAddress](./context.bindingaddress.md)<!-- --><unknown> | |
| propertyPath | string | |
| resolutionOptions | [ResolutionOptions](./context.resolutionoptions.md) | |
<b>Returns:</b>
[ValueOrPromise](./context.valueorpromise.md)<!-- --><ConfigValueType \| undefined>