• Maps a Result with mapper over Promise.

    Type Parameters

    • T

    • U

    Parameters

    • mapper: ((value) => Promise<U>)

      The asynchronous function from T to U.

        • (value): Promise<U>
        • Parameters

          • value: T

          Returns Promise<U>

    Returns (<E>(res) => Promise<Result<E, U>>)

    The mapped one on Promise.

      • <E>(res): Promise<Result<E, U>>
      • Type Parameters

        • E

        Parameters

        Returns Promise<Result<E, U>>

Generated using TypeDoc