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

0.0.38 • Public • Published

Installation

npm install --save @types/chai-things

Summary

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

Details

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

index.d.ts

/// <reference types="chai" />

declare namespace Chai {
    interface ArrayAssertion {
        include: ArrayInclude;
        contain: ArrayInclude;
        not: ArrayAssertion;
        all: Assertion;
    }

    interface ArrayInclude {
        (item: any): any;
        a: Item;
        an: Item;
        one: Something;
        some: Something;
        something: Something;
        any: Anything;
    }

    interface Include {
        (item: any): any;
        a: Item;
        an: Item;
        one: Something;
        some: Something;
        something: Something;
    }

    interface Anything extends Assertion {
        (): any;
        that: Assertion;
        with: Assertion;
    }

    interface Something extends Assertion {
        (): any;
        that: Assertion;
        with: Assertion;
    }

    interface Item {
        item: Something;
        thing: Something;
    }

    interface Deep {
        equals: Equal;
    }
}

interface Array<T> {
    should: Chai.ArrayAssertion;
}

declare module "chai-things" {
    const chaiThings: Chai.ChaiPlugin;
    namespace chaiThings {}
    export = chaiThings;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/chai

Credits

These definitions were written by David Broder-Rodgers.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chai-things

Weekly Downloads

24,325

Version

0.0.38

License

MIT

Unpacked Size

4.91 kB

Total Files

5

Last publish

Collaborators

  • types