Skip to content

Commit df55c93

Browse files
committed
Preserve AttachmentSummary types instead of erasing to unknown
1 parent dad03e7 commit df55c93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/publish/confluence/confluence.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ async function publish(
436436
LogPrefix.ATTACHMENT,
437437
);
438438

439-
const uploadAttachmentsResult: unknown[] = [];
439+
const uploadAttachmentsResult: (AttachmentSummary | null)[] = [];
440440

441441
for (let i = 0; i < attachmentsToUpload.length; i++) {
442442
// Start exactly ONE upload by calling the helper with a single attachment
@@ -446,7 +446,7 @@ async function publish(
446446
toUpdate.id,
447447
fileName,
448448
existingAttachments,
449-
) as Promise<unknown>[]; // uploadAttachments returns an array of Promises
449+
);
450450

451451
const res = await tasks[0];
452452
uploadAttachmentsResult.push(res);

0 commit comments

Comments
 (0)