@loopback/docs
Version:
Documentation for LoopBack 4
35 lines (22 loc) • 955 B
Markdown
lang: en
title: 'API docs: context.configbindingkeyfor'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.context.configbindingkeyfor.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [configBindingKeyFor](./context.configbindingkeyfor.md)
## configBindingKeyFor() function
Create binding key for configuration of the binding
<b>Signature:</b>
```typescript
export declare function configBindingKeyFor<ConfigValueType = unknown>(key: BindingAddress, configPath?: string): BindingKey<ConfigValueType>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | <code>BindingAddress</code> | Binding key for the target binding |
| configPath | <code>string</code> | Property path for the configuration |
<b>Returns:</b>
`BindingKey<ConfigValueType>`