Files
bentopdf/public/workers/json-to-pdf.worker.d.ts
2026-03-09 17:02:30 +01:00

21 lines
496 B
TypeScript

declare const coherentpdf: typeof import('../../src/types/coherentpdf.global').coherentpdf;
interface ConvertJSONToPDFMessage {
command: 'convert';
fileBuffers: ArrayBuffer[];
fileNames: string[];
cpdfUrl?: string;
}
interface JSONToPDFSuccessResponse {
status: 'success';
pdfFiles: Array<{ name: string; data: ArrayBuffer }>;
}
interface JSONToPDFErrorResponse {
status: 'error';
message: string;
}
type JSONToPDFResponse = JSONToPDFSuccessResponse | JSONToPDFErrorResponse;