initial refactor of how typescript gets formatted
other part of the refactor