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

19 lines
532 B
TypeScript
Raw Normal View History

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface ExtractAttachmentsMessage {
command: 'extract-attachments';
fileBuffers: ArrayBuffer[];
fileNames: string[];
}
interface ExtractAttachmentSuccessResponse {
status: 'success';
attachments: Array<{ name: string; data: ArrayBuffer }>;
}
interface ExtractAttachmentErrorResponse {
status: 'error';
message: string;
}
type ExtractAttachmentResponse = ExtractAttachmentSuccessResponse | ExtractAttachmentErrorResponse;