Files
Codeman/test/e2e/fixtures/pixelmatch.d.ts
T

25 lines
633 B
TypeScript
Raw Normal View History

/**
* Type declarations for pixelmatch
*/
declare module 'pixelmatch' {
interface PixelmatchOptions {
threshold?: number;
includeAA?: boolean;
alpha?: number;
aaColor?: [number, number, number];
diffColor?: [number, number, number];
diffColorAlt?: [number, number, number] | null;
diffMask?: boolean;
}
function pixelmatch(
img1: Uint8Array | Uint8ClampedArray | Buffer,
img2: Uint8Array | Uint8ClampedArray | Buffer,
output: Uint8Array | Uint8ClampedArray | Buffer | null,
width: number,
height: number,
options?: PixelmatchOptions
): number;
export = pixelmatch;
}