title: Minify and optimize Typescript code using type information?
body: <p>I'm preparing for the <a href="http://js13kgames.com/" rel="nofollow noreferrer">js13k</a> game dev competition and have been searching for ways to minify TypeScript code. Base on this <a href="https://stackoverflow.com/questions/12682268/is-it-possible-to-compile-typescript-into-minified-code">SO question</a> from 4 years ago, the solution seems to be compiling TypeScript code to JS and use the regular js tools but in doing so you lose all the valuable type information.</p>
  
  <p>Is there any way to make use of TypeScript's types to better minify and optimize the code's output?</p>