Handling Values or Effects Elegantly in Typescript with Effect Library
hi, is there any elegant way to handle this, where argument can be either the value or effect that resolves to that value on yield.
here
so that, i could use pipes and make code look cleaner for example.
instead of that, i could do something like
here
resolveEffect takes unknown value and wraps into effect based on its type.so that, i could use pipes and make code look cleaner for example.
instead of that, i could do something like
