Skip to content

lib es6 loses window and other dom stuff #9500

Closed
@basarat

Description

@basarat

ts:

console.log(window);

tsconfig.json:

{
  "compilerOptions": {
    "lib": [
      "es6"
    ]
  }
}

compile:

tsc -p .

Expected behavior:
Works!

Actual behavior:
Error cannot find name window.

refs #6974 🌹

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions