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

Type system incorrect on imports #76

Open
poteat opened this issue Aug 22, 2021 · 0 comments
Open

Type system incorrect on imports #76

poteat opened this issue Aug 22, 2021 · 0 comments

Comments

@poteat
Copy link

poteat commented Aug 22, 2021

image

The type system allows import A from "arcsecond", but this doesn't actually work, as the value of A is undefined in this context.

My preferred remediation would be to export the A interface entirely as a default, so that the values actually exist. An alternative remediation is to fix the type system such that the above results in a type error, forcing people to use import * as A from "arcsecond".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant