Page Contents

Home > @loopback/context > bindingTemplateFor

bindingTemplateFor() function

Get the binding template for a class with binding metadata

Signature:

export declare function bindingTemplateFor<T = unknown>(cls: Constructor<T | Provider<T>>): BindingTemplate<T>;

Parameters

Parameter Type Description
cls Constructor<T | Provider<T>> A class with optional @bind

Returns:

BindingTemplate<T>