0.0.38 • Published 7 months ago

@types/chai-things v0.0.38

Weekly downloads
10,154
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for chai-things
// Project: https://github.com/chaijs/chai-things
// Definitions by: David Broder-Rodgers <https://github.com/DavidBR-SW/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

/// <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: Fri, 09 Jul 2021 02:32:23 GMT
  • Dependencies: @types/chai
  • Global values: none

Credits

These definitions were written by David Broder-Rodgers.

0.0.36

9 months ago

0.0.37

7 months ago

0.0.38

7 months ago

0.0.35

3 years ago

0.0.34

5 years ago

0.0.33

6 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago