From 66d4e5113f395f7b52343240f8bb899985a53d2d Mon Sep 17 00:00:00 2001 From: Mitya Kononchuk Date: Tue, 14 Nov 2017 19:57:51 +0100 Subject: [PATCH] Explicit interface for nothing() --- types/jasmine/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;