From e8c2a041e4a138b1d39db3fc0ddfd6fa6106590d Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Thu, 9 Nov 2023 14:30:13 -0300 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20populate=20DeviceDetails.toRequ?= =?UTF-8?q?estBody=20by=20assignment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It causes the DeviceDetails class to not get tree-shaken. --- src/common/lib/types/devicedetails.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/lib/types/devicedetails.ts b/src/common/lib/types/devicedetails.ts index 8ad7e59a0b..4b93cac560 100644 --- a/src/common/lib/types/devicedetails.ts +++ b/src/common/lib/types/devicedetails.ts @@ -71,7 +71,9 @@ class DeviceDetails { return result; } - static toRequestBody = Utils.encodeBody; + static toRequestBody(body: unknown, MsgPack: MsgPack | null, format?: Utils.Format) { + return Utils.encodeBody(body, MsgPack, format); + } static fromResponseBody( body: Array> | Record,