MCPcopy
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
33export async function main() {
34 const ctx = new Context('invocation-context');
35 ctx.bind(CURRENT_USER).to('John');
36 await sayHello(ctx);
37}
38
39if (require.main === module) {
40 main().catch(err => {

Callers 1

Calls 3

bindMethod · 0.95
sayHelloFunction · 0.85
toMethod · 0.80

Tested by

no test coverage detected