fix: type cast BlobPart for TS 5.9 compat

This commit is contained in:
2026-07-17 16:51:01 +02:00
parent 7483bcd497
commit 1ad14f70a1
+1 -1
View File
@@ -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);