Ecosystem bridges · BUILT-IN MODULE

ts

TypeScript bridge.

Quick start

use ts
use ts

try ts.compile "app.ts"
output = try ts.output "app.ts"
say output

API reference

ts.run file

Run TypeScript. Fallible.

執行 TypeScript. 此操作可能失敗。
ts.compile file

Compile TypeScript. Fallible.

編譯 TypeScript. 此操作可能失敗。
ts.output file

Run TypeScript and capture output. Fallible.

執行 TypeScript and capture output. 此操作可能失敗。