t-tasks
    Preparing search index...

    Function generate

    • Create compound Either from generator function

      Applying yield to an Either within the generator function unwraps the Either and returns underlying value in case of success However the convenient option for typescript is to use yield* either.generator() as otherwise one may have to deal with union types

      Type Parameters

      • T

        yielded underlying type

      • TT extends Either<T, any>

        yielded Either type

      • R

        returned underlying type

      Parameters

      Returns Either<R, any>

      Right wrapping the result of generator function or Left