title: how to get base class generic type parameter in typescript using reflection api
body: <p>I need to extract Props interface from my React component to get documentation
  see this typescript wiki issue
  <a href="https://github.com/Microsoft/TypeScript-wiki/issues/65" rel="nofollow noreferrer">https://github.com/Microsoft/TypeScript-wiki/issues/65</a></p>
  
  <p>.net analog <a href="https://stackoverflow.com/questions/12087606/how-to-get-base-classs-generic-type-parameter">How to get base class&#39;s generic type parameter?</a></p>