Skip to content

Commit

Permalink
fix: types (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrontEndDog authored Jan 17, 2024
1 parent c1e35e4 commit f15c661
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/vite-plugin-mock/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ export declare interface MockMethod {
method?: MethodType
timeout?: number
statusCode?: number
response?: (
this: RespThisType,
opt: { url: Recordable; body: Recordable; query: Recordable; headers: Recordable },
) => any
response?:
| ((
this: RespThisType,
opt: { url: Recordable; body: Recordable; query: Recordable; headers: Recordable },
) => any)
| any
rawResponse?: (this: RespThisType, req: IncomingMessage, res: ServerResponse) => void
}

Expand Down

0 comments on commit f15c661

Please sign in to comment.