UNPKG

pdf-visual-diff

Version:

Visual Regression Testing for PDFs in JavaScript

15 lines (14 loc) 475 B
import { JimpInstance } from 'jimp'; /** * Writes images to the specified output path. * * @returns A function that takes an array of Jimp images and returns a promise that resolves to void. */ export declare const writeImages: ( /** The path where the images will be saved. */ outputImagePath: string, /** * Whether to combine all images into a single image. * @defaultValue true */ combinePages?: boolean) => (images: ReadonlyArray<JimpInstance>) => Promise<void>;