我在https://github.com/TypeStrong/ts-node上找到了这段代码
const x= 10;.type x
这是做什么是很清楚的,但我在官方的typescript文档中没有找到任何关于它的东西……
发布于 2019-05-31 01:24:17
该命令是an extension registered in ts-node。事实上,它是目前ts-node中唯一的这样的扩展。
格式(和additional commands such as .exit)来自Node的built-in repl package,ts-node使用并扩展它。
https://stackoverflow.com/questions/56382664
复制相似问题