Microsoft/TypeScript

[typescript] dom definitions not up to date

Open

#19,040 opened on Oct 9, 2017

View on GitHub
 (8 comments) (1 reaction) (0 assignees)TypeScript (48,455 stars) (6,726 forks)batch import
BugDomain: lib.d.tsEffort: CasualHelp WantedVS Code Tracked

Description

From @yukulele on October 5, 2017 12:7

  • VSCode Version: 1.16.1
  • OS Version: macOS Sierra 10.12.6

Steps to Reproduce:

  • Create this code in typescript file
const elm = document.createElement('main')
  • elm is typed as HTMLElement instead of HTMLMainElement

lib.dom.d.ts is not up to date

how to update it without wait for vscode update ?

Reproduces without extensions: Yes

Copied from original issue: Microsoft/vscode#35620

Contributor guide

[typescript] dom definitions not up to date · Microsoft/TypeScript#19040 | Good First Issue