Class default

AxiosSerializer class

Returns

Promise

Hierarchy

  • default

Constructors

Properties

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

Type declaration

    • (err): void
    • Parameters

      • err: any

      Returns void

orderly: undefined | boolean = true
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

  • Create request

    Type Parameters

    • T = any

    • R = AxiosResponse<T, any>

    • D = any

    Parameters

    Returns Promise<R>

  • 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