import { Singleton , AutoWired } from 'typescript-ioc' ; import * as Personalities from './personalities' ; @ Singleton @ AutoWired export class PersonalityManager { public get ( name ) { return Personalities [ name ] ; } }