@types/dirty-chai
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/dirty-chai

Summary

This package contains type definitions for dirty-chai (https://github.com/prodatakey/dirty-chai).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dirty-chai.

index.d.ts

/// <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;

Additional Details

Credits

These definitions were written by Piotr Roszatycki.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.4
    4,708
  • 2.0.3
    899
  • 2.0.2
    10,564
  • 2.0.1
    52
  • 2.0.0
    36

Package Sidebar

Install

npm i @types/dirty-chai

Weekly Downloads

16,259

Version

2.0.4

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • types