TypeScript: Local variable called 'name' conflicts with lib.d.ts 'name'

I have a variable called name and it seems to be duplicated with a const in lib.dom.d.ts and this affects some functions in vs code like hovering and going to definition. See this picture that shows the problem of hovering

er1

and this shows the problem of going to definition when I press F12 It goes to this file

er2

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

@minkir014

Have you hovered over the name varia…

Yes.

Are you here?

I’m not sitting in front of a computer 24x7…

@lll000111 Are you here?