forked from mystiq/hydrogen-web
Use object instead of Record
This commit is contained in:
parent
82de3c9867
commit
f89b937ee7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue