Skip to content

Provide a quick fix for 'module does not refer to a type' #24172

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
// ./foo.ts

export async function bar() {
    let foo: import("./foo") = await import("./foo");
//           ^^^^^^^^^^^^^^^
// Module './foo' does not refer to a type, but is used as a type here.
}

We should give a quick fix in this scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.FixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions