Skip to content

Commit

Permalink
Don’t populate DeviceDetails.toRequestBody by assignment
Browse files Browse the repository at this point in the history
It causes the DeviceDetails class to not get tree-shaken.
  • Loading branch information
lawrence-forooghian committed Nov 9, 2023
1 parent a9cc07d commit e8c2a04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/lib/types/devicedetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>> | Record<string, unknown>,
Expand Down

0 comments on commit e8c2a04

Please sign in to comment.