import { Singleton , AutoWired } from 'typescript-ioc' ; import * as AllProfessions from './professions' ; import { BaseProfession } from './professions/Profession' ; @ Singleton @ AutoWired export class ProfessionHelper { public getProfession ( prof ) { return new AllProfessions [ prof ] ( ) ; } public hasProfession ( prof ) { return AllProfessions [ prof ] ; } }