This package provides TypeScript definitions for the Chai As Promised assertion library. Chai As Promised extends Chai with convenient assertions for promises including eventually, rejected, and fulfilled. These definitions enable type checking and autocompletion when using Chai As Promised in TypeScript projects, improving code quality and preventing runtime errors related to incorrect promise assertions. Using this package enhances developer experience with statically typed assertions for asynchronous operations.
The npm package @types/chai-as-promised has had sporadic releases since July 2016. Initial releases were less frequent, with a period of no releases between 2018 and mid-2019. Releases picked up slightly between 2019 and 2024 with version 7. The package saw a release of version 8 in August 2024. There have been no releases in the last five months leading up to August 2025, which makes the latest version 8.0.2 of March 2025.
@types/chai-as-promised downloads show growth from February 2024 to August 2025. Downloads surged significantly in June and July 2025, peaking at over 5.8 million. August 2025 downloads are lower, but the month is not yet complete, which doesn't reflect the whole data.