Page Contents
Home > @loopback/context > configBindingKeyFor
configBindingKeyFor() function
Create binding key for configuration of the binding
Signature:
export declare function configBindingKeyFor<ConfigValueType = unknown>(key: BindingAddress, propertyPath?: string): BindingKey<ConfigValueType>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| key | [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html) | Binding key for the target binding |
| propertyPath | string | _(Optional)_ Property path for the configuration |
Returns:
BindingKey<ConfigValueType>