Options
All
  • Public
  • Public/Protected
  • All
Menu
export
interface

TxiosStatic

extends

{TxiosInstance}

description

这是个静态方法拓展 主要是因为 Txios 这个单例修改默认配置会影响所有的请求 所以这里提供一个 create 的接口来 产生一个新的 txios 实例将这些配置隔离开

Hierarchy

Callable

Index

Properties

Cancel

Cancel: CancelStatic

CancelToken

CancelToken: CancelTokenStatic

Txios

defaults

interceptors

interceptors: object

isCancel

isCancel: function

Type declaration

    • (value: any): boolean
    • Parameters

      • value: any

      Returns boolean

Methods

all

  • all<T>(promises: Array<T | Promise<T>>): Promise<T[]>
  • Type parameters

    • T

    Parameters

    • promises: Array<T | Promise<T>>

    Returns Promise<T[]>

create

delete

get

getUri

head

options

patch

post

put

request

spread

  • spread<T, U>(callback: function): function
  • Type parameters

    • T

    • U

    Parameters

    • callback: function
        • (...args: T[]): U
        • Parameters

          • Rest ...args: T[]

          Returns U

    Returns function

      • (arr: T[]): U
      • Parameters

        • arr: T[]

        Returns U

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc