This package provides TypeScript definitions for the pixelmatch library, a tiny, fast pixel-level image comparison library. These definitions offer static typing and autocompletion support when using pixelmatch in TypeScript projects. They cover the function's options for threshold, includeAA, and different image data types (Uint8Array, etc.), facilitating a smoother and more robust development experience. Improve code quality and prevent errors by leveraging comprehensive type information.
The @types/pixelmatch npm package has sporadic releases. Initial version 4.0.0 was released in November 2017. Version 5 saw releases in July 2019, followed by updates in March, April, and September 2020. Further releases occurred in April and July 2021, then in October and November 2023. No releases have occurred in 2022, 2024, or so far in 2025.
@types/pixelmatch downloads show a generally increasing trend from March 2024 to August 2025, peaking around 2.9 million in July and August 2025. However, September 2025 downloads are significantly lower, at approximately 1 million, likely due to the month being incomplete.