-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Bug Report
π Search Terms
references
find all references
rename
π Version & Regression Information
β― Playground Link
π» Code
These are more scenarios from investigations of #42976 where the definition is considered local but is exported and can be referenced by other projects. So we need to think about a way to figure that out efficiently.
/// /shared/src/index.ts
const local = class {
foo: string;
constructor() {
this.foo = "foo";
}
fly() {
console.log(this.foo);
}
};
export const d = local;
class xy {
foo: string;
constructor() {
this.foo = "foo";
}
fly() {
console.log(this.foo);
}
};
export { xy };π Actual behavior
fly usage from project referencing the shared does not load other projects
π Expected behavior
fly usage from project referencing the shared should load other projects
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript