非文件形式的输入
¥Non-file forms of input
可以为 --eval
和 STDIN 启用类型剥离。模块系统将由 --input-type
确定,就像 JavaScript 一样。
¥Type stripping can be enabled for --eval
and STDIN. The module system
will be determined by --input-type
, as it is for JavaScript.
REPL、--check
和 inspect
不支持 TypeScript 语法。
¥TypeScript syntax is unsupported in the REPL, --check
, and
inspect
.