• Maps an item in the promise by fn.

    Type Parameters

    • T

    • U

    Parameters

    • fn: ((t) => U)

      The function to transform T into U.

        • (t): U
        • Parameters

          • t: T

          Returns U

    Returns ((t) => Promise<U>)

    The transformed promise.

      • (t): Promise<U>
      • Parameters

        • t: Promise<T>

        Returns Promise<U>

Generated using TypeDoc