diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 6eb7daae94..3259bdb565 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -93,7 +93,7 @@ declare function expect(actual: T): jasmine.Matchers; /** * Create an expectation for a spec. */ -declare function expect(): jasmine.Matchers; +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; @@ -460,6 +459,10 @@ declare namespace jasmine { not: ArrayLikeMatchers; } + interface NothingMatcher { + nothing(): void; + } + interface Reporter { reportRunnerStarting(runner: Runner): void; reportRunnerResults(runner: Runner): void;