Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/loopbackio/loopback-next
/ add
Method
add
packages/core/src/__tests__/unit/service.unit.ts:61–61 ·
view source on GitHub ↗
(a: number, b: number)
Source
from the content-addressed store, hash-verified
59
it(
'injects a service by string interface'
,
async
() => {
60
interface
Calculator {
61
add(a: number, b: number): number;
62
}
63
64
@injectable({scope: BindingScope.SINGLETON})
Callers
15
addExtension
Function · 0.65
controller
Method · 0.65
server
Method · 0.65
component
Method · 0.65
lifeCycleObserver
Method · 0.65
service
Method · 0.65
mountComponent
Function · 0.65
service.unit.ts
File · 0.65
extension-point.unit.ts
File · 0.65
application-lifecycle.unit.ts
File · 0.65
givenObserver
Function · 0.65
givenObserverWithParamInjection
Function · 0.65
Implementers
6
CalculatorService
packages/core/src/__tests__/unit/servi
Context
packages/context/src/context.ts
WhereBuilder
packages/filter/src/query.ts
InMemoryLog
examples/log-extension/src/__tests__/i
CalculatorController
examples/soap-calculator/src/controlle
RecipeRepository
examples/graphql/src/repositories/reci
Calls
no outgoing calls
Tested by
7
givenObserver
Function · 0.52
givenObserverWithParamInjection
Function · 0.52
givenAsyncObserver
Function · 0.52
constructor
Method · 0.52
observe
Method · 0.52
givenBindingFromClass
Function · 0.52
observe
Method · 0.52