Type Parameters

  • T

  • U

Hierarchy

  • ResponsePromise

Constructors

  • Type Parameters

    • T

    • U

    Parameters

    • url: string | URL
    • request: {
          data?: any;
          headers: Record<string, any>;
          method: string;
      }
      • Optional data?: any
      • headers: Record<string, any>
      • method: string

    Returns ResponsePromise<T, U>

Methods

  • Parameters

    • fn: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns Promise<any>

  • Parameters

    • fn: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns Promise<Response>

  • Parameters

    • Optional params: {
          data?: any;
          headers?: Record<string, any>;
          method?: string;
      }
      • Optional data?: any
      • Optional headers?: Record<string, any>
      • Optional method?: string

    Returns Promise<Response>

  • Returns AsyncGenerator<U, any, any>

  • Parameters

    • onSuccess: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    • onFail: ((...args) => any)
        • (...args): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns Promise<T>

Generated using TypeDoc