Skip to content

Commit 3bbf7a3

Browse files
committed
style: lint fix
1 parent e5a2a08 commit 3bbf7a3

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

docs/en/guide/mock-config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Supported request methods.
6464
Only 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

docs/zh/guide/mock-config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

plugin/src/types.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff 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

262262
type 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,添加额外的属性和方法

0 commit comments

Comments
 (0)