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 Binding key for the target binding
propertyPath string (Optional) Property path for the configuration

Returns:

BindingKey<ConfigValueType>