webcompiler
Version:
Lint, type-check, compile, package and gzip JavaScript (ES6 + Flow static types + JSX), for the browser as well as NodeJS; lint, compile, auto-prefix, minify and gzip SASS.
25 lines (22 loc) • 493 B
JavaScript
/* @flow */
type Assert = {
not: Assert;
a(type: string): void;
calledWith(...args: any[]): void;
called: void;
equal(obj: any): void;
eql(obj: any): void;
instanceof(obj: any): void;
contain(obj: Object | string | number): void;
returned(obj: any): void;
calledOnce: void;
calledTwice: void;
null: void;
false: void;
true: void;
undefined: void;
};
declare module 'chai' {
declare function expect(obj: any): Assert;
declare function use(obj: any): void;
}