mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Explicit interface for nothing()
This commit is contained in:
Vendored
+5
-2
@@ -93,7 +93,7 @@ declare function expect<T>(actual: T): jasmine.Matchers<T>;
|
||||
/**
|
||||
* Create an expectation for a spec.
|
||||
*/
|
||||
declare function expect(): jasmine.Matchers<undefined>;
|
||||
declare function expect(): jasmine.NothingMatcher;
|
||||
|
||||
/**
|
||||
* Explicitly mark a spec as failed.
|
||||
@@ -446,7 +446,6 @@ declare namespace jasmine {
|
||||
toThrow(expected?: any): boolean;
|
||||
toThrowError(message?: string | RegExp): boolean;
|
||||
toThrowError(expected?: new (...args: any[]) => Error, message?: string | RegExp): boolean;
|
||||
nothing(): Any;
|
||||
|
||||
not: Matchers<T>;
|
||||
|
||||
@@ -460,6 +459,10 @@ declare namespace jasmine {
|
||||
not: ArrayLikeMatchers<T>;
|
||||
}
|
||||
|
||||
interface NothingMatcher {
|
||||
nothing(): void;
|
||||
}
|
||||
|
||||
interface Reporter {
|
||||
reportRunnerStarting(runner: Runner): void;
|
||||
reportRunnerResults(runner: Runner): void;
|
||||
|
||||
Reference in New Issue
Block a user