File tree Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ Supported request methods.
6464Only the matching request methods will return ` mock data ` , otherwise they will be ignored. Multiple request methods can be configured using an array.
6565
6666``` ts
67- type Method =
68- | ' GET' | ' POST' | ' PUT' | ' DELETE'
69- | ' PATCH' | ' HEAD' | ' TRACE' | ' OPTIONS'
67+ type Method
68+ = | ' GET' | ' POST' | ' PUT' | ' DELETE'
69+ | ' PATCH' | ' HEAD' | ' TRACE' | ' OPTIONS'
7070` ` `
7171
7272## enabled
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ export default defineMock([
6565仅符合的请求方法返回 ` mock data ` ,否则忽略。可通过数组配置接口支持多种请求方法。
6666
6767``` ts
68- type Method =
69- | ' GET' | ' POST' | ' PUT' | ' DELETE'
70- | ' PATCH' | ' HEAD' | ' TRACE' | ' OPTIONS'
68+ type Method
69+ = | ' GET' | ' POST' | ' PUT' | ' DELETE'
70+ | ' PATCH' | ' HEAD' | ' TRACE' | ' OPTIONS'
7171` ` `
7272
7373## enabled
Original file line number Diff line number Diff line change @@ -249,26 +249,26 @@ export interface ServerBuildOption {
249249 log ?: LogLevel
250250}
251251
252- export type Method =
253- | 'GET'
254- | 'POST'
255- | 'PUT'
256- | 'DELETE'
257- | 'PATCH'
258- | 'HEAD'
259- | 'TRACE'
260- | 'OPTIONS'
252+ export type Method
253+ = | 'GET'
254+ | 'POST'
255+ | 'PUT'
256+ | 'DELETE'
257+ | 'PATCH'
258+ | 'HEAD'
259+ | 'TRACE'
260+ | 'OPTIONS'
261261
262262type Headers = http . IncomingHttpHeaders
263263
264- export type ResponseBody =
265- | Record < string , any >
266- | any [ ]
267- | string
268- | number
269- | Readable
270- | Buffer
271- | null
264+ export type ResponseBody
265+ = | Record < string , any >
266+ | any [ ]
267+ | string
268+ | number
269+ | Readable
270+ | Buffer
271+ | null
272272
273273/**
274274 * 扩展 request,添加额外的属性和方法
You can’t perform that action at this time.
0 commit comments