compile to typescript