UNPKG

1.28 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/dirty-chai`
3
4# Summary
5This package contains type definitions for dirty-chai (https://github.com/prodatakey/dirty-chai).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dirty-chai.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dirty-chai/index.d.ts)
10````ts
11/// <reference types="chai" />
12/// <reference types="chai-as-promised" />
13
14declare global {
15 namespace Chai {
16 interface LanguageChains {
17 always: Assertion;
18 }
19
20 interface Assertion {
21 (message?: string): Assertion;
22 ensure: Assertion;
23 }
24
25 interface PromisedAssertion extends Eventually, PromiseLike<any> {
26 (message?: string): PromisedAssertion;
27 ensure: PromisedAssertion;
28 }
29 }
30}
31
32declare const dirtyChai: Chai.ChaiPlugin;
33export = dirtyChai;
34
35````
36
37### Additional Details
38 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
39 * Dependencies: [@types/chai](https://npmjs.com/package/@types/chai), [@types/chai-as-promised](https://npmjs.com/package/@types/chai-as-promised)
40
41# Credits
42These definitions were written by [Piotr Roszatycki](https://github.com/dex4er).
43
\No newline at end of file