@vtj / Modules / renderer / MockCallbackOptions
Interface: MockCallbackOptions
renderer.MockCallbackOptions
Table of contents
Properties
Properties
body
• body: string
| FormData
发送数据 playload
Defined in
packages/renderer/types/provider/apis.d.ts:20
data
• Optional
data: any
发送数据, body 转 json
Defined in
packages/renderer/types/provider/apis.d.ts:32
params
• Optional
params: Record
<string
, any
>
url 查询参数,/api/332?name=abc =>
Defined in
packages/renderer/types/provider/apis.d.ts:28
query
• Optional
query: Record
<string
, any
>
url路径参数,/api/:id =>
Defined in
packages/renderer/types/provider/apis.d.ts:24
type
• type: string
请求方法类型
Defined in
packages/renderer/types/provider/apis.d.ts:16
url
• url: string
请求url
Defined in
packages/renderer/types/provider/apis.d.ts:12