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](/doc/en/lb4/apidocs.core.serviceinterface.html) Service class matching the one used by `binding.toClass()`

Returns:

BindingFilter