你可以使用 typescript 来编写脚本文件。或者使用 Saltarelle。