Compile a TypeScript String to a Javascript String programmatically

后端 未结 1 608
春和景丽
春和景丽 2021-01-13 19:30

Is there a way to compile a String containing TypeScript to its JavaScript String equivalent ?

For instance, in Coffeescript (and L

相关标签:
1条回答
  • 2021-01-13 19:50

    You can use TypeScript.Api nodejs package : https://npmjs.org/package/typescript.api

    In particular check out this function : https://github.com/sinclairzx81/typescript.api#compile

    0 讨论(0)
提交回复
热议问题