From 0541cf8f2ba3818e1f6f81a48608c2ac41fe8ff6 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 1 Dec 2021 15:13:48 +0530 Subject: [PATCH] Change object to Record --- src/matrix/net/common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/net/common.ts b/src/matrix/net/common.ts index 5239cf56..9c476dd6 100644 --- a/src/matrix/net/common.ts +++ b/src/matrix/net/common.ts @@ -35,8 +35,7 @@ export function encodeQueryParams(queryParams?: Record): string { .join("&"); } -export function encodeBody(body: BlobHandle | object): EncodedBody { - // todo: code change here +export function encodeBody(body: BlobHandle | Record): EncodedBody { if (body instanceof BlobHandle) { const blob = body as BlobHandle; return {