import { Container } from 'typedi' ; import { Application } from '../interfaces/Application' ; export function InjectServer ( ) { return function ( object , propertyName , index ? ) { Container . registerHandler ( { object , propertyName , index , value : ( ) => { return Container . get < Application > ( 'TIE_SERVER' ) ; } , } ) ; } ; }