@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
65 lines (34 loc) • 1.27 kB
Markdown
---
lang: en
title: 'API docs: context.bindingkey.buildkeyforconfig'
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.bindingkey.buildkeyforconfig.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/context](./context.md) > [BindingKey](./context.bindingkey.md) > [buildKeyForConfig](./context.bindingkey.buildkeyforconfig.md)
## BindingKey.buildKeyForConfig() method
Build a binding key for the configuration of the given binding. The format is `<key>:$config`
**Signature:**
```typescript
static buildKeyForConfig<T>(key?: BindingAddress): BindingAddress<T>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
key
</td><td markdown="1">
[BindingAddress](./context.bindingaddress.md)
</td><td markdown="1">
_(Optional)_ Key of the target binding to be configured
</td></tr>
</tbody></table>
**Returns:**
[BindingAddress](./context.bindingaddress.md)<!-- --><T>