Fixed compile errors from last commit

This commit is contained in:
Saud Fatayerji
2023-11-17 16:11:06 +03:00
parent 4c8a85726d
commit a93c575b05
5 changed files with 13 additions and 13 deletions

View File

@@ -4,12 +4,12 @@ import { splitPagesByIndex } from "./common/splitPagesByIndex.js";
import { detectEmptyPages } from "./common/detectEmptyPages.js";
import { detectQRCodePages } from "./common/detectQRCodePages.js";
export type SplitOnParamsType = {
export type SplitPageByPresetParamsType = {
file: PdfFile;
type: "BAR_CODE"|"QR_CODE"|"BLANK_PAGE";
whiteThreashold?: number;
}
export async function splitPagesByPreset(params: SplitOnParamsType): Promise<PdfFile[]> {
export async function splitPagesByPreset(params: SplitPageByPresetParamsType): Promise<PdfFile[]> {
const { file, type, whiteThreashold } = params;
console.log("File: ", file);