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
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