Skip to content

Fix types import #36

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

Closed
wants to merge 1 commit into from
Closed

Conversation

chapterjason
Copy link
Contributor

@chapterjason chapterjason commented Mar 16, 2021

As I thought on the first PR #8 (comment) imports should be declared inside the module declaration otherwise it can cause errors like:

TS2665: Invalid module name in augmentation. Module '@symfony/stimulus-bridge' resolves to an untyped module at '[...]/node_modules/@symfony/stimulus-bridge/dist/index.js', which cannot be augmented.

source: https://stackoverflow.com/a/48846446

@weaverryan
Copy link
Member

Hey @chapterjason!

I know it's been awhile, but how were you seeing that error? The types seem to work fine for me - I also moved them into the package itself in #55.

Cheers!

@chapterjason
Copy link
Contributor Author

Hey @weaverryan

I saw your pr, its the way I proposed the first time. 😄 #8

I would say let's close this one and improve yours.

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

Successfully merging this pull request may close these issues.

2 participants