fix: type cast BlobPart for TS 5.9 compat
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ export class Qbirr {
|
|||||||
if (opts.receiverAccount) form.append('receiver_account', opts.receiverAccount);
|
if (opts.receiverAccount) form.append('receiver_account', opts.receiverAccount);
|
||||||
const blob = opts.file instanceof Blob
|
const blob = opts.file instanceof Blob
|
||||||
? opts.file
|
? opts.file
|
||||||
: new Blob([opts.file], { type: opts.contentType || 'application/octet-stream' });
|
: new Blob([opts.file as unknown as BlobPart], { type: opts.contentType || 'application/octet-stream' });
|
||||||
form.append('file', blob, opts.filename || 'upload.pdf');
|
form.append('file', blob, opts.filename || 'upload.pdf');
|
||||||
|
|
||||||
return this.requestForm<VerifyResult>('POST', '/api/v1/verify/upload', form);
|
return this.requestForm<VerifyResult>('POST', '/api/v1/verify/upload', form);
|
||||||
|
|||||||
Reference in New Issue
Block a user