Files
bentopdf/public/workers/add-attachments.worker.d.ts

24 lines
543 B
TypeScript
Raw Permalink Normal View History

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface AddAttachmentsMessage {
command: 'add-attachments';
pdfBuffer: ArrayBuffer;
attachmentBuffers: ArrayBuffer[];
attachmentNames: string[];
cpdfUrl?: string;
}
interface AddAttachmentsSuccessResponse {
status: 'success';
modifiedPDF: ArrayBuffer;
}
interface AddAttachmentsErrorResponse {
status: 'error';
message: string;
}
type AddAttachmentsResponse =
| AddAttachmentsSuccessResponse
| AddAttachmentsErrorResponse;