MCPcopy
hub / github.com/loopbackio/loopback-next / asService

Function asService

packages/core/src/service.ts:204–211  ·  view source on GitHub ↗
(serviceInterface: ServiceInterface)

Source from the content-addressed store, hash-verified

202 * @param serviceInterface - Service interface
203 */
204export function asService(serviceInterface: ServiceInterface): BindingTemplate {
205 return function serviceTemplate(binding: Binding) {
206 binding.tag({
207 [ContextTags.TYPE]: CoreTags.SERVICE,
208 [CoreTags.SERVICE_INTERFACE]: serviceInterface,
209 });
210 };
211}

Callers 4

recipe.service.tsFile · 0.90
createServiceBindingFunction · 0.85
service.unit.tsFile · 0.85

Calls 1

tagMethod · 0.80

Tested by

no test coverage detected