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

Class Greeter

examples/context/src/context-chain.ts:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import {Context, inject} from '@loopback/context';
7
8class Greeter {
9 constructor(@inject('prefix') private prefix: string) {}
10 greet(name: string) {
11 return `[${this.prefix}] Hello, ${name}!`;
12 }
13}
14
15export async function main() {
16 const appCtx = new Context('app');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected