Class AxiosExtend

AxiosExtend class

Returns

Promise

Hierarchy

  • AxiosExtend

Constructors

Properties

axiosInstance: AxiosInstance = ...
onCancel: undefined | null | ((error) => void) = null

Type declaration

    • (error): void
    • Parameters

      • error: any

      Returns void

orderly: undefined | boolean = true
retries: number
unique: undefined | boolean = false
waiting: WaitingList = {}

Methods

  • set item to waiting list

    Parameters

    • key: string

      the key of waiting line, usually to be the request url

    • item: WaitingItem

      waiting object

    Returns void

  • Drop all un-need requests

    Parameters

    • Optional key: string

      the key of waiting line, usually to be the request url

    Returns void

  • Waiting to resolve the item before this request

    Parameters

    • key: string

      the key of waiting line, usually to be the request url

    • promiseKey: symbol

      the unique promise key

    Returns Promise<void>

    • Promise

Generated using TypeDoc