UNPKG
st-common-req
Version:
latest (0.3.5)
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.3
0.1.2
0.1.1
0.1.0
Small Tail 前端通用请求库
st-common-req
/
es
/
axios
/
types
/
gen-req-util-type.d.ts
10 lines
(9 loc)
•
289 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
AxiosRequestConfig
,
AxiosResponse
}
from
'axios'
;
/** * 生成请求方法的工具函数的返回值类型 */
export
type
GenReqUtilReturnType
=
(
props
: { url:
string
; data?: Record<
string
,
any
>; config?: AxiosRequestConfig<
any
>; }
) =>
Promise
<
AxiosResponse
<
any
>>;