From 3fdb22ed85a782ed5df52f1bfd0a92a6e38784c7 Mon Sep 17 00:00:00 2001 From: antoinebrault Date: Wed, 5 Dec 2018 21:28:24 -0500 Subject: [PATCH] revert MockResult definition --- types/jest/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index f303230f76..02b6cb5cba 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -947,9 +947,13 @@ declare namespace jest { * Represents the result of a single call to a mock function. */ interface MockResult { - type: 'return' | 'throw' | 'incomplete'; /** - * The value that was either thrown or returned by the function, or undefined if type = 'incomplete' + * True if the function threw. + * False if the function returned. + */ + isThrow: boolean; + /** + * The value that was either thrown or returned by the function. */ value: any; }