// Type definitions for dirty-chai 2.0 // Project: https://github.com/prodatakey/dirty-chai // Definitions by: Piotr Roszatycki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 /// /// declare global { namespace Chai { interface LanguageChains { always: Assertion; } interface Assertion { (message?: string): Assertion; ensure: Assertion; } interface PromisedAssertion extends Eventually, PromiseLike { (message?: string): PromisedAssertion; ensure: PromisedAssertion; } } } declare const dirtyChai: Chai.ChaiPlugin; export = dirtyChai;