Skip to content

Commit 0b18d07

Browse files
fix(typescript): filteringBodyRequest (#2552)
1 parent 26bbb93 commit 0b18d07

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ declare namespace nock {
118118
filteringPath(regex: RegExp, replace: string): this
119119
filteringPath(fn: (path: string) => string): this
120120
filteringRequestBody(regex: RegExp, replace: string): this
121-
filteringRequestBody(fn: (body: string) => string): this
121+
filteringRequestBody(
122+
fn: (body: string, recordedBody: string) => string,
123+
): this
122124

123125
persist(flag?: boolean): this
124126
replyContentLength(): this

0 commit comments

Comments
 (0)