Skip to content

No string literal member completions when contextually typed by a mapped type #38667

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

From https://twitter.com/Jordy_vD_/status/1262368766526205952

let x: { [_ in "foo"]: string } = {
  "/**/"
}

Request completions at /**/

Expected: Completion for foo
Actual: No completions

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions