Skip to content

feat: add toOption() alias to Result type#335

Merged
codewizdave merged 3 commits into
mainfrom
feature/v1.0.0-alpha.1
Jun 8, 2026
Merged

feat: add toOption() alias to Result type#335
codewizdave merged 3 commits into
mainfrom
feature/v1.0.0-alpha.1

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

Summary

  • Add toOption() method as an alias for toMaybe() on Result type
  • Provides a familiar API for developers coming from other FP libraries
  • Implemented in both Ok and Err variants

Test plan

  • Type check passes
  • Lint passes
  • Existing tests pass

🤖 Generated with Claude Code

martyy-code and others added 3 commits June 8, 2026 13:54
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add toOption() as an alias for toMaybe() on Result, providing
a familiar API for developers coming from other FP libraries.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
core-web Ready Ready Preview, Comment Jun 8, 2026 2:44pm

@codewizdave codewizdave merged commit d77d683 into main Jun 8, 2026
10 checks passed
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.

2 participants