neverthrow icon indicating copy to clipboard operation
neverthrow copied to clipboard

OrElse callback should be able to change Ok type

Open braxtonhall opened this issue 2 years ago • 3 comments

  • resolves #411
  • resolves #437

Unfortunately this would be a breaking change, as anyone who explicitly annotated the types like orElse<A>(foo) will need to update their code to orElse<U, A>(foo)

braxtonhall avatar Jun 29 '23 12:06 braxtonhall

https://github.com/supermacro/neverthrow/issues/496

supermacro avatar Oct 09 '23 10:10 supermacro

@supermacro Any updates on this? Would be really great to have this behavior for orElse :)

myftija avatar Nov 04 '23 19:11 myftija

+1

jdisho avatar Dec 24 '23 15:12 jdisho