@triviality/core
Version:
Purely typed service container
14 lines (8 loc) • 334 B
text/typescript
import { GreetingsServiceInterface } from './GreetingsServiceInterface';
export class ScreamGreetingsService implements GreetingsServiceInterface {
constructor(private speakService: GreetingsServiceInterface) {
}
public greet(name: string): string {
return `${this.speakService.greet(name).toUpperCase()}!!!!!!`;
}
}