Skip to content

Commit

Permalink
fix: change some descriptions in ts defs for request/response data in…
Browse files Browse the repository at this point in the history
…terface (#7069)
  • Loading branch information
karolnowinski committed Jun 15, 2022
1 parent d4fbdf2 commit 4c1a538
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ts-defs-src/test-api/request-hook.d.ts
Expand Up @@ -84,8 +84,8 @@ interface RequestData {
*/
headers: Record<string, string>;
/**
* The response body. Logged if the `logResponseBody` option is set to `true`.
* A [Buffer](https://nodejs.org/api/buffer.html) or string depending on the `stringifyResponseBody` option.
* The request body. Logged if the `logRequestBody` option is set to `true`.
* A [Buffer](https://nodejs.org/api/buffer.html) or string depending on the `stringifyRequestBody` option.
*/
body: string | Buffer;
/**
Expand All @@ -100,12 +100,11 @@ interface ResponseData {
*/
statusCode: number;
/**
* Response headers in the property-value form. Logged if the `logResponseHeaders` option is set to true.
* Response headers in the property-value form. Logged if the `logResponseHeaders` option is set to `true`.
*/
headers: Record<string, string>;
/**
* The response body.
* Logged if the `logResponseBody` option is set to true.
* The response body. Logged if the `logResponseBody` option is set to `true`.
* A [Buffer](https://nodejs.org/api/buffer.html) or string depending on the `stringifyResponseBody` option.
*/
body: string | Buffer;
Expand Down

0 comments on commit 4c1a538

Please sign in to comment.