阅读背景:

为什么在存在顶级const时,Typescript会出错,或者在Node.js的许多文件中使用相同的名称

来源:互联网 

Why does declaring a const or a let at the top level result in the TS2451 error (see below)? I understand that in browsers all scripts share the top level scope but I'm writing for Node.js where all at the top




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: