Skip to content

fix: type narrowing - #1

Merged
jcbkdev merged 1 commit into
mainfrom
fix/type-narrowing
Oct 16, 2026
Merged

jcbkdev merged 1 commit into
mainfrom
fix/type-narrowing

Conversation

@jcbkdev

@jcbkdev jcbkdev commented Oct 16, 2026

Copy link
Copy Markdown
Owner

isOk/isError now narrow to Ok<T>/Err<T>, so getValue and getError get the right types in if/else.

isOk/isError now narrow to Ok<T>/Err<T>, so getValue and getError get the right types in if/else.
@jcbkdev
jcbkdev merged commit ff6c901 into main Oct 16, 2026
2 checks passed
@jcbkdev
jcbkdev deleted the fix/type-narrowing branch October 17, 2026 13:47
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