From 0e06269e028d92316c3380eb9dfd2ab72bed25ba Mon Sep 17 00:00:00 2001 From: Technion Date: Thu, 14 Dec 2017 10:43:13 +0000 Subject: [PATCH] Move #19662 fix to a fake interface as per PR discussion. --- types/jest/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index dda9bded66..0c595a5b82 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1046,11 +1046,12 @@ declare namespace jest { path: Path; } + interface Set {} // To allow non-ES6 users the Set below interface Reporter { onTestResult?(test: Test, testResult: TestResult, aggregatedResult: AggregatedResult): void; onRunStart?(results: AggregatedResult, options: ReporterOnStartOptions): void; onTestStart?(test: Test): void; - onRunComplete?(contexts: [Context], results: AggregatedResult): Maybe>; + onRunComplete?(contexts: Set, results: AggregatedResult): Maybe>; getLastError?(): Maybe; }