-
Notifications
You must be signed in to change notification settings - Fork 6
/
Chai.d.ts
33 lines (29 loc) · 955 Bytes
/
Chai.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import * as AE from 'assertion-error';
import * as Assert from './Assert';
import * as A from './Assertion';
import * as Expect from './Expect';
import * as Should from './Should';
import * as Config from './Config';
import * as Utils from './Utils';
declare namespace chai {
export interface AssertionStatic extends A.AssertionStatic {}
export class AssertionError extends AE.AssertionError {}
export var Assertion: A.AssertionStatic;
export var expect: Expect.ExpectStatic;
export var assert: Assert.AssertStatic;
export var config: Config.Config;
export var util: Utils.Utils;
export function should(): Should.Should;
export function Should(): Should.Should;
/**
* Provides a way to extend the internals of Chai
*/
export function use(fn: (chai: any, utils: Utils.Utils) => void): typeof chai;
}
export = chai;
/* tslint:disable:no-internal-module */
declare global {
interface Object {
should: A.Assertion;
}
}