npm install --save @types/dirty-chai
This package contains type definitions for dirty-chai (https://github.com/prodatakey/dirty-chai).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dirty-chai.
/// <reference types="chai" />
/// <reference types="chai-as-promised" />
declare global {
namespace Chai {
interface LanguageChains {
always: Assertion;
}
interface Assertion {
(message?: string): Assertion;
ensure: Assertion;
}
interface PromisedAssertion extends Eventually, PromiseLike<any> {
(message?: string): PromisedAssertion;
ensure: PromisedAssertion;
}
}
}
declare const dirtyChai: Chai.ChaiPlugin;
export = dirtyChai;
- Last updated: Wed, 28 Aug 2024 05:07:31 GMT
- Dependencies: @types/chai, @types/chai-as-promised
These definitions were written by Piotr Roszatycki.