Skip to content

Commit

Permalink
feat: improve result ok matcher
Browse files Browse the repository at this point in the history
Allow specifying the type of the ok-value using a parameter typing.
  • Loading branch information
ComradeVanti committed Mar 20, 2024
1 parent 843bea1 commit 4622e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare global {

toHaveScopedRegistries(): R;

toBeOk(valueAsserter?: (value: unknown) => void): R;
toBeOk<T>(valueAsserter?: (value: T) => void): R;

toBeError(errorAsserter?: (error: Error) => void): R;
}
Expand Down

0 comments on commit 4622e68

Please sign in to comment.