forked from mystiq/hydrogen-web
Change object to Record
This commit is contained in:
parent
bf93bd79c9
commit
0541cf8f2b
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue