From 2844f3c2b3a64bbe2869c8da54931b0871f273b2 Mon Sep 17 00:00:00 2001 From: Lukas Zech Date: Wed, 15 Mar 2017 07:55:49 +0100 Subject: [PATCH] Fix generic contstraint --- jasmine/index.d.ts | 4 ++-- jasminewd2/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jasmine/index.d.ts b/jasmine/index.d.ts index f75a9f2127..caa1d12635 100644 --- a/jasmine/index.d.ts +++ b/jasmine/index.d.ts @@ -25,7 +25,7 @@ declare function beforeAll(action: (done: DoneFn) => void, timeout?: number): vo declare function afterAll(action: (done: DoneFn) => void, timeout?: number): void; declare function expect(spy: Function): jasmine.Matchers; -declare function expect>(actual: ArrayLike): jasmine.ArrayLikeMatchers; +declare function expect(actual: ArrayLike): jasmine.ArrayLikeMatchers; declare function expect(actual: T): jasmine.Matchers; declare function fail(e?: any): void; @@ -347,7 +347,7 @@ declare namespace jasmine { Any: Any; } - interface ArrayLikeMatchers> extends Matchers { + interface ArrayLikeMatchers extends Matchers> { toBe(expected: Expected>, expectationFailOutput?: any): boolean; toEqual(expected: Expected>, expectationFailOutput?: any): boolean; toContain(expected: T, expectationFailOutput?: any): boolean; diff --git a/jasminewd2/index.d.ts b/jasminewd2/index.d.ts index a4122c6639..3b8760709c 100644 --- a/jasminewd2/index.d.ts +++ b/jasminewd2/index.d.ts @@ -44,7 +44,7 @@ declare namespace jasmine { toThrowError(expected?: new (...args: any[]) => Error | Promise Error>, message?: string | RegExp | Promise): Promise; } - interface ArrayLikeMatchers> extends Matchers { + interface ArrayLikeMatchers extends Matchers> { toBe(expected: Expected>, expectationFailOutput?: any): Promise; toEqual(expected: Expected>, expectationFailOutput?: any): Promise; toContain(expected: T, expectationFailOutput?: any): Promise;