Skip to content

In node.js REPL, after evaluating "global", accessing anything from global scope causes TS2669 #1067

@panta82

Description

@panta82

Expected Behavior

You can do something like:

> global // show global object
> Number // prints "[Function: Number]"

Actual Behavior

image

Steps to reproduce the problem

  1. Install @types/node
  2. Start ts-node in REPL mode
  3. Type "global"
  4. Type "Number"

Minimal reproduction

https://github.com/panta82/ts-node-minimal-reproduction

Specifications

  • ts-node v8.10.2
  • node v14.4.0
  • compiler v3.9.5
  • Operating system and version: Linux 5.4.0-37-generic 18.04.1-Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions