Added Type for the real useages of pdf Operations
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
|
||||
import SharedOperations from "@stirling-pdf/shared-operations/src";
|
||||
import SharedOperations, { OperationsUseages } from "@stirling-pdf/shared-operations/src";
|
||||
|
||||
// Import injected libraries here!
|
||||
//import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/wasm/pdfcpu/pdfcpu-wrapper-node.js";
|
||||
|
||||
/*async function impose(snapshot: any, nup: number, format: string) {
|
||||
return SharedOperations.impose(snapshot, nup, format, pdfcpuWrapper);
|
||||
}*/
|
||||
|
||||
export default {
|
||||
...SharedOperations,
|
||||
//impose,
|
||||
async function impose(snapshot: any, nup: number, format: string) {
|
||||
return SharedOperations.impose(snapshot, nup, format, null); // TODO change null to pdfcpuWrapper
|
||||
}
|
||||
|
||||
const toExport: OperationsUseages = {
|
||||
...SharedOperations,
|
||||
impose,
|
||||
}
|
||||
export default toExport;
|
||||
|
||||
Reference in New Issue
Block a user