fix tool/ToTypeScript
bug fixed at TypeApply
update ts