Skip to content

fix: Incorrect type hint for module type #626

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

Merged
merged 6 commits into from
Nov 14, 2022

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Nov 9, 2022

Close #571

@zth zth requested a review from cristianoc November 13, 2022 12:01
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!
A style suggestion.

@@ -6,7 +6,7 @@ type modulePath =
| File of Uri.t * string
| NotVisible
| IncludedModule of Path.t * modulePath
| ExportedModule of string * modulePath
| ExportedModule of string * modulePath * bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is getting a bit confusing above, what about an inline record so the 3 components of the payload are named.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@cristianoc cristianoc merged commit f21af99 into rescript-lang:master Nov 14, 2022
@aspeddro aspeddro deleted the fix-hover-module-type branch December 19, 2022 17:26
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.

Incorrect type hint for module type
2 participants