From 1ad14f70a1b6e0a045eedcc474e065add9af5c26 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 17 Jul 2026 16:51:01 +0200 Subject: [PATCH] fix: type cast BlobPart for TS 5.9 compat --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index deb8215..31dab9b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -149,7 +149,7 @@ export class Qbirr { if (opts.receiverAccount) form.append('receiver_account', opts.receiverAccount); const blob = opts.file instanceof Blob ? 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'); return this.requestForm('POST', '/api/v1/verify/upload', form);