Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ghost opened this issue Jun 10, 2016 · 2 comments
Closed

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

ghost opened this issue Jun 10, 2016 · 2 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@ghost
Copy link

ghost commented Jun 10, 2016

// 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.

@OliverJAsh
Copy link
Contributor

I believe this is not restricted to ambient modules not all modules.

@mhegazy
Copy link
Contributor

mhegazy commented Nov 20, 2017

Seems to be working in latest.

@mhegazy mhegazy closed this as completed Nov 20, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Nov 20, 2017
@mhegazy mhegazy modified the milestones: Future, TypeScript 2.7 Nov 20, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants