-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
When import a file via import * as, there is still a chance to expose package/private exports to outside. Is it a bug or design limitation?
// ----- sub/foo.ts -----
/** @public */
export const public_var = 0;
/** @package */
export const package_var = 0;
// ----- baz.ts -----
import * as Foo from "./sub/foo";
Foo.public_var;
Foo.package_var;
// ^ expect error hereReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed