mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
revert MockResult definition
This commit is contained in:
Vendored
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user