Change object to Record

This commit is contained in:
RMidhunSuresh 2021-12-01 15:13:48 +05:30
parent bf93bd79c9
commit 0541cf8f2b

View file

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