Skip to content
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

Require optional struct fields to be explicitly set to undefined in TypeScript to avoid setting them #482

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

stepchowfun
Copy link
Owner

@stepchowfun stepchowfun commented Jun 19, 2024

Require optional struct fields to be explicitly set to undefined in TypeScript to avoid setting them. Previously, such fields could be omitted entirely, but that meant typos in optional field names could go unnoticed.

Status: Ready

Fixes: N/A

@stepchowfun stepchowfun force-pushed the optional-undefined branch 2 times, most recently from ebc63f4 to 0f9b55a Compare June 19, 2024 02:26
@stepchowfun stepchowfun changed the title Require optional struct fields to be explicitly set to undefined to avoid setting them Require optional struct fields to be explicitly set to undefined in TypeScript to avoid setting them Jun 19, 2024
@stepchowfun stepchowfun force-pushed the optional-undefined branch 2 times, most recently from 89ec556 to 4fb4b69 Compare June 19, 2024 02:30
@stepchowfun stepchowfun merged commit 9cdf0a1 into main Jun 19, 2024
6 checks passed
@stepchowfun stepchowfun deleted the optional-undefined branch June 19, 2024 02:38
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.

1 participant