You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system and version: Linux 5.4.0-37-generic 18.04.1-Ubuntu
The text was updated successfully, but these errors were encountered:
panta82
changed the title
In node.js REPL, after evaluating global, accessing anything from global scope prints "Augmentations for the global scope can only be directly nested in external modules or ambient module declarations"
In node.js REPL, after evaluating global, accessing anything from global scope causes TS2669
Jun 21, 2020
panta82
changed the title
In node.js REPL, after evaluating global, accessing anything from global scope causes TS2669
In node.js REPL, after evaluating "global", accessing anything from global scope causes TS2669
Jun 21, 2020
The REPL has to concatenate each line of input into a single TypeScript
file. My guess is the concatenation in this case is going wrong, so it's
concatenating into something similar to `global { Number }`.
Expected Behavior
You can do something like:
Actual Behavior
Steps to reproduce the problem
@types/node
ts-node
in REPL modeglobal
"Number
"Minimal reproduction
https://github.com/panta82/ts-node-minimal-reproduction
Specifications
The text was updated successfully, but these errors were encountered: