Skip to content

Annotate all CompilerOptions fields with omitzero #639

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 1 commit into from
Mar 17, 2025
Merged

Conversation

jakebailey
Copy link
Member

This makes baselines a lot cleaner.

Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

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

This is fine, but it’s also a reminder that we need to overhaul this for null to be able to work in extends...

@jakebailey
Copy link
Member Author

Yes, though that all is thankfully before this display layer, and this is all a very quick hack for printing out configs anyhow...

@andrewbranch
Copy link
Member

FWIW, it’s not just for display in my API branch; it gets sent to JS through that marshalling too.

@jakebailey
Copy link
Member Author

Oh, eek. Okay. Though the bits should actually come out to be the same, at least if one goes from Go to Go, but obviously omitting them on the Go side means they will be undefined on the JS side...

@jakebailey jakebailey added this pull request to the merge queue Mar 17, 2025
@andrewbranch
Copy link
Member

Which is more than likely how they came in on the JSON side, which is why this whole thing is sketchy 🙃

Merged via the queue into main with commit af508df Mar 17, 2025
21 checks passed
@jakebailey jakebailey deleted the jabaile/omitzero branch March 18, 2025 22:27
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