Transforming TypeScript into JavaScript

前端 未结 11 1272
再見小時候
再見小時候 2020-12-08 02:01

I\'m wondering how is it possible to transform the TypeScript into JavaScript in a cross platform manner. I\'m aware about availability of node package manager for typescrip

11条回答
  •  离开以前
    2020-12-08 02:46

    From the command line you can use ts-node:

    npm install ts-node
    

    Then call the command like this:

    tsc file.ts --outFile file.js
    

提交回复
热议问题