GitHub
Preparing search index...
The search index is not available
request-template-monorepo - v2.2.0
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
request-template-monorepo
request-template
Types
RetryContext
Interface RetryContext<CC>
请求上下文+重试上下文
Type Parameters
CC
extends
CustomConfig
Hierarchy
Context
<
CC
>
RetryContext
Index
Properties
is
Retry?
clear
Set
request
Key
retry?
custom
Config
request
Config
Properties
Optional
is
Retry
is
Retry
?:
boolean
clear
Set
clear
Set
:
Set
<
Function
>
request
Key
request
Key
:
string
Optional
retry
retry
?:
(
(
e
:
unknown
)
=>
AxiosPromise
<
any
>
)
Type declaration
(
e
:
unknown
)
:
AxiosPromise
<
any
>
Parameters
e:
unknown
Returns
AxiosPromise
<
any
>
custom
Config
custom
Config
:
CC
自定义配置
request
Config
request
Config
:
AxiosRequestConfig
<
any
>
请求配置
On This Page
is
Retry
clear
Set
request
Key
retry
custom
Config
request
Config
request-
template-
monorepo -
v2.2.0
request-
template -
v2.2.0
Classes
Request
Template
请求封装基类
Cache
缓存管理类
Canceler
Canceler管理类
Types
Custom
Cache
Config
自定义缓存配置项
Retry
Config
重试配置项
Custom
Config
自定义配置
Res
Type
请求返回值类型
Configs
配置总项
Context
请求上下文
Retry
Context
请求上下文+重试上下文
Status
Handler
Status
Handlers
多状态处理类型声明
Tag
标签,用于通过标签取消请求等功能
Dynamic
Custom
Config
自动推导自定义类型,不推荐外部使用
Http
Status
Http
Status
http状态码枚举
request-
template/axios -
v2.2.0
Axios
Request
Template
axios请求封装类,继承自RequestTemplate
request-
template/vue3-
hooks -
v2.2.0
State
hook返回的状态
Alias
Options
Data
Driver
Options
All
Options
Options中所有的选项
FN
use
Request
vue3 请求hooks `手动请求` 不依赖RequestTemplate,可独立使用
request-
template/wechat -
v2.2.0
Wechat
Request
Template
微信小程序请求封装类,继承自RequestTemplate
Wechat
Custom
Config
微信小程序请求自定义配置,继承自CustomConfig
Generated using
TypeDoc
请求上下文+重试上下文