Skip to content

Commit

Permalink
fix(typescript): filteringBodyRequest (#2552)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenprater committed Nov 3, 2023
1 parent 26bbb93 commit 0b18d07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ declare namespace nock {
filteringPath(regex: RegExp, replace: string): this
filteringPath(fn: (path: string) => string): this
filteringRequestBody(regex: RegExp, replace: string): this
filteringRequestBody(fn: (body: string) => string): this
filteringRequestBody(
fn: (body: string, recordedBody: string) => string,
): this

persist(flag?: boolean): this
replyContentLength(): this
Expand Down

0 comments on commit 0b18d07

Please sign in to comment.