Skip to content

Find all references does not work for default export of ambient module #9081

Closed
@ghost

Description

// declarations.d.ts
declare module "x" {
    const df: number;
    export default df;
}

// index.ts
import df from "x";

Goto-declaration works for df in index.ts, but find-all-references for df in declarations.d.ts only finds the two uses in that file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions