@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/dirty-chai

Weekly Downloads

17,079

Version

2.0.4

License

MIT

Unpacked Size

3.85 kB

Total Files

5

Last publish

Collaborators

  • types