Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove prettify to avoid circular bug #83

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

gustavoguichard
Copy link
Collaborator

This was reported on #81 , the Prettify type is supposed to help with readability of resulting type of MergeObj but it has a - now - known bug that can cause infinitely recursive types thus killing TSC.

You can read more about it here: remix-run/remix#6736

@gustavoguichard gustavoguichard requested a review from diogob July 31, 2023 13:52
@gustavoguichard gustavoguichard force-pushed the remove-prettify-to-avoid-circular-bug branch from 800d483 to 6f210bc Compare July 31, 2023 16:11
@gustavoguichard
Copy link
Collaborator Author

After investigating a little longer I was able to generate a cleaner version of the MergeObjs that won't create the problem.
The file described by @jam-fran is this one: https://www.unpkg.com/domain-functions@1.7.0/types/utils.d.ts

In that file we can see the problem. After making this small change the generated utils.d.ts won't carry that bug.

Copy link
Collaborator

@diogob diogob left a comment

Choose a reason for hiding this comment

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

LGTM

@gustavoguichard gustavoguichard merged commit be2fb83 into main Jul 31, 2023
@gustavoguichard gustavoguichard deleted the remove-prettify-to-avoid-circular-bug branch July 31, 2023 16:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants