fix ToTypeScript