Cleanup, Documented Impose

This commit is contained in:
Felix Kaspar
2023-11-17 20:38:45 +01:00
parent 432342415e
commit 8a63ebe6cf
7 changed files with 30 additions and 21 deletions

View File

@@ -7,8 +7,7 @@ import { PdfFile } from "@stirling-pdf/shared-operations/src/wrappers/PdfFile"
import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/wasm/pdfcpu/pdfcpu-wrapper-browser.js";
async function impose(params: ImposeParamsType): Promise<PdfFile> {
const paramsToUse = { ...params, pdfcpuWrapper: pdfcpuWrapper };
return SharedOperations.impose(paramsToUse);
return SharedOperations.impose(params, pdfcpuWrapper);
}
const toExport: OperationsType = {