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(unstable): sloppy imports should resolve .d.ts files during types resolution #22602

Merged
merged 6 commits into from Feb 27, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Feb 27, 2024

I noticed this while working on a Node project. We should resolve .d.ts files for .js files during types resolution when sloppy import resolution is enabled. This change fixes mostly all of the type errors I was getting while working on a node project.

@dsherret dsherret marked this pull request as ready for review February 27, 2024 03:41
@dsherret dsherret changed the title fix(unstable): sloppy import resolution should resolve .d.ts files fix(unstable): sloppy imports should resolve .d.ts files during types resolution Feb 27, 2024
cli/resolver.rs Outdated Show resolved Hide resolved
path.join("index.ts"),
path.join("index.mts"),
path.join("index.d.ts"),
path.join("index.d.mts"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤮

@dsherret dsherret enabled auto-merge (squash) February 27, 2024 18:01
@dsherret dsherret merged commit e9fe71a into denoland:main Feb 27, 2024
17 checks passed
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.

None yet

2 participants