Use object instead of Record

This commit is contained in:
RMidhunSuresh 2021-12-01 12:52:30 +05:30
parent 82de3c9867
commit f89b937ee7

View file

@ -35,7 +35,7 @@ export function encodeQueryParams(queryParams?: Record<string, any>): string {
.join("&");
}
export function encodeBody(body: Record<string, any>): EncodedBody {
export function encodeBody(body: BlobHandle | object): EncodedBody {
// todo: code change here
if (body instanceof BlobHandle) {
const blob = body as BlobHandle;