Skip to content

Commit

Permalink
even better types
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Oct 5, 2021
1 parent 9cfe5d3 commit 245dbbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/expect/src/types.ts
Expand Up @@ -302,11 +302,11 @@ export interface Matchers<R> {
/**
* Used to test that a function throws when it is called.
*/
toThrow(error?: string | RegExp | Error | ErrorConstructor): R;
toThrow(error?: unknown): R;
/**
* If you want to test that a specific error is thrown inside a function.
*/
toThrowError(error?: string | RegExp | Error | ErrorConstructor): R;
toThrowError(error?: unknown): R;

/* TODO: START snapshot matchers are not from `expect`, the types should not be here */
/**
Expand Down

0 comments on commit 245dbbb

Please sign in to comment.