Skip to content

Local variable called 'name' conflicts with lib.d.ts 'name' #31783

Closed
@minkir014

Description

@minkir014

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions