I'm preparing for the js13k game dev competition and have been searching for ways to minify TypeScript code. Base on this SO question 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.
Is there any way to make use of TypeScript's types to better minify and optimize the code's output?