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;