@types/chai-things
Version:
TypeScript definitions for chai-things
61 lines (51 loc) • 1.13 kB
TypeScript
/// <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;
}