-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: add ModuleGraphError::TypesResolutionError #311
feat: add ModuleGraphError::TypesResolutionError #311
Conversation
Result<&'a Module, &'a ModuleGraphError>, | ||
); | ||
type ModuleResult<'a> = | ||
(&'a ModuleSpecifier, Result<&'a Module, &'a ModuleError>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really make sense to store resolution errors in the module slots, so changed this from ModuleGraphError
to just ModuleError
.
I added Nayeem to this repo. This should be fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I like this change, does it mean that we'll be able to not fail on wrong types specifier but still fail if the actual code can't be resolved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Does it offer different functionality from just checking the type-only status of the graph branch when traversing? Feels like it should be a lot simpler to identify type-only graph arcs with #272
That was already possible before by using
@nayeemrmn I don't understand. Could you clarify?
I'm unsure if we should make that change anymore. It's now possible to have specifiers like |
Nevermind, the
Yeah.. I'll see what to do with that PR. I still think we can get a flatter structure but will have to rethink it. |
Adds a new
TypesResolutionError
so that it's easier to identify which resolution errors are for type checking or not and enhance the error messages.FYI @nayeemrmn. For some reason I can't add you as a reviewer.