Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ts defs for request/response data interface #7069

Merged
merged 1 commit into from Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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