@@ -281,7 +281,7 @@ export interface ThrowsAssertion {
281
281
* Assert that the function throws [an error](https://www.npmjs.com/package/is-error). If so, returns the error value.
282
282
* The error must satisfy all expectations. Returns null when the assertion fails.
283
283
*/
284
- < ThrownError extends Error > ( fn : ( ) => any , expectations ?: ThrowsExpectation | null , message ?: string ) : ThrownError | null ;
284
+ < ThrownError extends Error > ( fn : ( ) => any , expectations ?: ThrowsExpectation , message ?: string ) : ThrownError | null ;
285
285
286
286
/** Skip this assertion. */
287
287
skip ( fn : ( ) => any , expectations ?: any , message ?: string ) : void ;
@@ -292,14 +292,14 @@ export interface ThrowsAsyncAssertion {
292
292
* Assert that the async function throws [an error](https://www.npmjs.com/package/is-error). If so, returns the error
293
293
* value. Returns null when the assertion fails. You must await the result. The error must satisfy all expectations.
294
294
*/
295
- < ThrownError extends Error > ( fn : ( ) => PromiseLike < any > , expectations ?: ThrowsExpectation | null , message ?: string ) : Promise < ThrownError | null > ;
295
+ < ThrownError extends Error > ( fn : ( ) => PromiseLike < any > , expectations ?: ThrowsExpectation , message ?: string ) : Promise < ThrownError | null > ;
296
296
297
297
/**
298
298
* Assert that the promise rejects with [an error](https://www.npmjs.com/package/is-error). If so, returns the
299
299
* rejection reason. Returns null when the assertion fails. You must await the result. The error must satisfy all
300
300
* expectations.
301
301
*/
302
- < ThrownError extends Error > ( promise : PromiseLike < any > , expectations ?: ThrowsExpectation | null , message ?: string ) : Promise < ThrownError | null > ; // eslint-disable-line @typescript-eslint/unified-signatures
302
+ < ThrownError extends Error > ( promise : PromiseLike < any > , expectations ?: ThrowsExpectation , message ?: string ) : Promise < ThrownError | null > ; // eslint-disable-line @typescript-eslint/unified-signatures
303
303
304
304
/** Skip this assertion. */
305
305
skip ( thrower : any , expectations ?: any , message ?: string ) : void ;
0 commit comments