UNPKG

@types/chai-things

Version:
80 lines (65 loc) 1.79 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-things/index.d.ts) ````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](https://npmjs.com/package/@types/chai) # Credits These definitions were written by [David Broder-Rodgers](https://github.com/DavidBR-SW).