mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Fixed --noImplicitAny trouble about expect.js
This commit is contained in:
1
expect.js/expect.js-tests.ts.tscparams
Normal file
1
expect.js/expect.js-tests.ts.tscparams
Normal file
@@ -0,0 +1 @@
|
||||
""
|
||||
10
expect.js/expect.js.d.ts
vendored
10
expect.js/expect.js.d.ts
vendored
@@ -10,35 +10,35 @@ declare module Expect {
|
||||
/**
|
||||
* Check if the value is truthy
|
||||
*/
|
||||
ok();
|
||||
ok(): void;
|
||||
|
||||
/**
|
||||
* Assert that the function throws.
|
||||
*
|
||||
* @param fn callback to match error string against
|
||||
*/
|
||||
throwError(fn?: Function);
|
||||
throwError(fn?: Function): void;
|
||||
|
||||
/**
|
||||
* Assert that the function throws.
|
||||
*
|
||||
* @param fn callback to match error string against
|
||||
*/
|
||||
throwException(fn?: Function);
|
||||
throwException(fn?: Function): void;
|
||||
|
||||
/**
|
||||
* Assert that the function throws.
|
||||
*
|
||||
* @param regexp regexp to match error string against
|
||||
*/
|
||||
throwError(regexp: RegExp);
|
||||
throwError(regexp: RegExp): void;
|
||||
|
||||
/**
|
||||
* Assert that the function throws.
|
||||
*
|
||||
* @param fn callback to match error string against
|
||||
*/
|
||||
throwException(regexp: RegExp);
|
||||
throwException(regexp: RegExp): void;
|
||||
|
||||
/**
|
||||
* Checks if the array is empty.
|
||||
|
||||
Reference in New Issue
Block a user