Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/loopbackio/loopback-next
/ main
Function
main
examples/context/src/injection-without-binding.ts:33–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
31
}
32
33
export
async
function
main() {
34
const
ctx =
new
Context(
'invocation-context'
);
35
ctx.bind(CURRENT_USER).to(
'John'
);
36
await
sayHello(ctx);
37
}
38
39
if
(require.main === module) {
40
main().catch(err => {
Callers
1
injection-without-binding.ts
File · 0.70
Calls
3
bind
Method · 0.95
sayHello
Function · 0.85
to
Method · 0.80
Tested by
no test coverage detected