Type alias Factory<T, U, V>

Factory<T, U, V>: ((state) => Promise<T>)

Type Parameters

  • T

  • U

  • V extends string

Type declaration

    • (state): Promise<T>
    • A promise factory that returns an individual poll request.

      Parameters

      Returns Promise<T>

      Typeparam

      T - The resolved type of the factory's promises.

      Typeparam

      U - The rejected type of the factory's promises.

      Typeparam

      V - The type to extend the phases supported by a poll.

Generated using TypeDoc