rxtutils 1.1.2-beta.8 → 1.1.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,7 +98,7 @@ interface Options<Params = any, Data = any> {
|
|
|
98
98
|
* 可以配置 HTTP 状态码对应的错误信息或处理函数
|
|
99
99
|
* @default {} 空对象,使用默认处理函数
|
|
100
100
|
*/
|
|
101
|
-
httpErrorCodeMap?: Record<string, string | ((code: number, res: AxiosResponse<Data>, requestParam: RequestOptions<Params>) => ErrorHandlerReturnType<Data> | void)>;
|
|
101
|
+
httpErrorCodeMap?: Record<string, string | ((code: number, res: AxiosResponse<Data>, requestParam: RequestOptions<Params>) => Promise<ErrorHandlerReturnType<Data> | void>)>;
|
|
102
102
|
/**
|
|
103
103
|
* 默认 HTTP 错误码处理函数
|
|
104
104
|
* 当 HTTP 状态码不在 httpErrorCodeMap 中时调用
|