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

fix: typescript cannot recognize index.d.ts when using es module #254

Conversation

nguyenhothanhtam0709
Copy link

This pr fixes issue that typescript cannot recognize index.d.ts when using es module.

@mmomtchev
Copy link
Owner

thank you for this issue, can you please also add a new unit test?

@nguyenhothanhtam0709
Copy link
Author

@mmomtchev , I actually don't know how to write unit test for this issue. Can you help me with some idea?

@mmomtchev
Copy link
Owner

Just a minimal repro then?

@nguyenhothanhtam0709
Copy link
Author

@mmomtchev, I just add a test using tsc --noEmit to ensure that import pymport in .mts file will not cause compile time error. Please review it.

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