Skip to content

Commit

Permalink
fix: add not type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseltime committed Nov 26, 2024
1 parent 9e41a81 commit 68b24e7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/jest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ declare global {
namespace jest {
// Type-narrow expect for FetchMock
interface Expect {
(actual: FetchMock): FetchMockMatchers;
(actual: typeof fetch): FetchMockMatchers;
(actual: FetchMock): FetchMockMatchers & {
not: FetchMockMatchers;
};
(actual: typeof fetch): FetchMockMatchers & {
not: FetchMockMatchers;
};
}
}
}
Expand Down

0 comments on commit 68b24e7

Please sign in to comment.