Skip to content

Avoid unnecessary type assertions in module resolution code #31238

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

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented May 3, 2019

Ref: #18217

Note that this changes the public API of CompilerHost#resolveModuleNames. The Host is expected to return ResolvedModuleFull, but there is some compatibility code for "older" hosts. That code is still there, but if you compile your "older host" with a new version of TypeScript, you will get a type error if you only return ResolvedModule.
I could revert that particular change if you are not comfortable with it.

@sheetalkamat
Copy link
Member

I don't think we want to break API at this point..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Housekeeping Housekeeping PRs
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants