Skip to content

Commit

Permalink
fix changeset (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored May 31, 2024
1 parent 5745886 commit ac58169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/quiet-lions-smile.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"@effect/schema": patch
---

Fix constructor type inference for classes with all optional fields, closes #
Fix constructor type inference for classes with all optional fields, closes #2888

This fix addresses an issue where TypeScript incorrectly inferred the constructor parameter type as an empty object {} when all class fields were optional. Now, the constructor properly recognizes arguments as objects with optional fields (e.g., { abc?: number, xyz?: number }).

0 comments on commit ac58169

Please sign in to comment.