UNPKG

802 BTypeScriptView Raw
1// Type definitions for dirty-chai 2.0
2// Project: https://github.com/prodatakey/dirty-chai
3// Definitions by: Piotr Roszatycki <https://github.com/dex4er>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5// TypeScript Version: 3.0
6
7/// <reference types="chai" />
8/// <reference types="chai-as-promised" />
9
10declare global {
11 namespace Chai {
12 interface LanguageChains {
13 always: Assertion;
14 }
15
16 interface Assertion {
17 (message?: string): Assertion;
18 ensure: Assertion;
19 }
20
21 interface PromisedAssertion extends Eventually, PromiseLike<any> {
22 (message?: string): PromisedAssertion;
23 ensure: PromisedAssertion;
24 }
25 }
26}
27
28declare const dirtyChai: Chai.ChaiPlugin;
29export = dirtyChai;