MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / CalculatorService

Class CalculatorService

packages/core/src/__tests__/unit/service.unit.ts:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 @injectable({scope: BindingScope.SINGLETON})
65 class CalculatorService implements Calculator {
66 add(a: number, b: number) {
67 return a + b;
68 }
69 }
70
71 class MyController {
72 constructor(

Callers

nothing calls this directly

Calls 1

injectableFunction · 0.90

Tested by

no test coverage detected