title: Dynamically loading a typescript class (reflection for typescript)
body: <p>I would like to be able to instantiate a typescript class where I get the class and constructor details at runtime.
  The function I would like to write will take in the class name and constructor parameters.</p>
  
  <pre><code>export function createInstance(moduleName : string, className : string, instanceParameters : string[]) {
      //return new [moduleName].[className]([instancePameters]); (THIS IS THE BIT I DON'T KNOW HOW TO DO)
  }
  </code></pre>