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

fix: change type create method return null #194 #198

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

4lessandrodev
Copy link
Owner

[1.24.0] - 2024-11-28

Fix

  • Explicit Typing for Failures: Result.fail now explicitly returns Result<null, ...>, ensuring that values are always null in failure states.
  • New isNull Method: Added to simplify validation of null values or failure states, improving readability and type safety.
  • Adjusted Creation Methods: Methods like create and adapters now return Result<T | null> where applicable for better consistency and error handling.

Impact

These changes improve type safety, make failure handling more explicit, and encourage clearer checks in code. The updates may require minor adjustments in existing codebases to accommodate the explicit null typing in failures. This release is marked as beta for testing purposes.

Feedback is welcome! 🚀

issue

@4lessandrodev 4lessandrodev merged commit eb9790d into main Nov 28, 2024
1 check passed
@4lessandrodev 4lessandrodev deleted the release/v1.24.0 branch December 15, 2024 21:17
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