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 definitions don't match the export structure of the sources #429

Open
LinqLover opened this issue May 14, 2021 · 0 comments
Open

Type definitions don't match the export structure of the sources #429

LinqLover opened this issue May 14, 2021 · 0 comments

Comments

@LinqLover
Copy link

TypeScript is unable to derive types from gl-matrix when a single type is imported using require('gl-matrix/vec3') or something similar:

image
image

Nevertheless, both require() statements are valid and equivalent as you can try in your REPL.

After filing an issue in the TypeScript repository, @RyanCavanaugh kindly explained to me that there must be a problem with the type definitions in this repository. As far as I understand, this repository would need to define all types that are exported in the src/index.js as default exports so that all entry points are declared correctly.

For the original issue, please see microsoft/TypeScript#44077.

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