UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

81 lines (41 loc) 1.39 kB
--- lang: en title: 'API docs: context.configbindingkeyfor' 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.configbindingkeyfor.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [configBindingKeyFor](./context.configbindingkeyfor.md) ## configBindingKeyFor() function Create binding key for configuration of the binding **Signature:** ```typescript export declare function configBindingKeyFor<ConfigValueType = unknown>(key: BindingAddress, propertyPath?: string): BindingKey<ConfigValueType>; ``` ## 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"> Binding key for the target binding </td></tr> <tr><td markdown="1"> propertyPath </td><td markdown="1"> string </td><td markdown="1"> _(Optional)_ Property path for the configuration </td></tr> </tbody></table> **Returns:** [BindingKey](./context.bindingkey.md)<!-- -->&lt;ConfigValueType&gt;