Page Contents

Home > @loopback/core > filterByServiceInterface

filterByServiceInterface() function

Create a binding filter by service class

Signature:

export declare function filterByServiceInterface(serviceInterface: ServiceInterface): BindingFilter;

Parameters

Parameter Type Description
serviceInterface ServiceInterface Service class matching the one used by binding.toClass()

Returns:

BindingFilter