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, configPath?: string): BindingKey<ConfigValueType>;

Parameters

Parameter Type Description
key BindingAddress Binding key for the target binding
configPath string Property path for the configuration

Returns:

BindingKey<ConfigValueType>