typedi example


```typeimport { Container, Service } from 'typedi';@Service()class ExampleInjectedService {  printMessage() {    console.log('I am alive!');  }}@Service()class ExampleService {  constructor(    // because we annotated ExampleInjectedService with the @Service()    // decorator TypeDI will automatically inject an instance of    // ExampleInjectedService here when the ExampleService class is requested    // from TypeDI.    private injectedService: ExampleInjectedService  ) {}}const serviceInstance = Container.get(ExampleService);// we request an instance of ExampleService from TypeDIserviceInstance.injectedService.printMessage();// logs "I am alive!" to the console```





