Bootstrap typescript rewriting