From 4c1a5383bccf2d4155e334d4041541ba7618fabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Nowi=C5=84ski?= Date: Wed, 15 Jun 2022 13:42:30 +0200 Subject: [PATCH] fix: change some descriptions in ts defs for request/response data interface (#7069) --- ts-defs-src/test-api/request-hook.d.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ts-defs-src/test-api/request-hook.d.ts b/ts-defs-src/test-api/request-hook.d.ts index 88e2340b3a..8edfe3b7b4 100644 --- a/ts-defs-src/test-api/request-hook.d.ts +++ b/ts-defs-src/test-api/request-hook.d.ts @@ -84,8 +84,8 @@ interface RequestData { */ headers: Record; /** - * 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; /** @@ -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; /** - * 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;