Skip to content

Commit

Permalink
fix: inappropriate type annotation (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
mys1024 authored Apr 16, 2023
1 parent cd0b86f commit a3fc4aa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ export declare interface MockMethod {
method?: MethodType
timeout?: number
statusCode?: number
response?:
| ((
this: RespThisType,
opt: { url: Recordable; body: Recordable; query: Recordable; headers: Recordable },
) => any)
| any
response?: (
this: RespThisType,
opt: { url: Recordable; body: Recordable; query: Recordable; headers: Recordable },
) => any
rawResponse?: (this: RespThisType, req: IncomingMessage, res: ServerResponse) => void
}

Expand Down

0 comments on commit a3fc4aa

Please sign in to comment.