supermacro / neverthrow

Type-Safe Errors for JS & TypeScript
MIT License
4.03k stars 84 forks source link

returning ok() without any arguments? #595

Open petermakeswebsites opened 1 month ago

petermakeswebsites commented 1 month ago

There's probably some good reason this hasn't been implemented, but sometimes I just want to know if something fired properly, no need to return a value. It seems ok() has to take a value. Is it possible to make an implementation where its ok for ok() to take nothing and just be ok as it is?

macksal commented 1 month ago

This is solved in my PR #584

Please help by providing a review :)