From f89b937ee7cdbb068ea1f234d671d8c73444b2c1 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 1 Dec 2021 12:52:30 +0530 Subject: [PATCH] Use object instead of Record --- src/matrix/net/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/common.ts b/src/matrix/net/common.ts index 287e5e9e..5239cf56 100644 --- a/src/matrix/net/common.ts +++ b/src/matrix/net/common.ts @@ -35,7 +35,7 @@ export function encodeQueryParams(queryParams?: Record): string { .join("&"); } -export function encodeBody(body: Record): EncodedBody { +export function encodeBody(body: BlobHandle | object): EncodedBody { // todo: code change here if (body instanceof BlobHandle) { const blob = body as BlobHandle;