非文件形式的输入


【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.】

TypeScript 语法在 REPL、--checkinspect 中不受支持。

【TypeScript syntax is unsupported in the REPL, --check, and inspect.】