Skip to content

Commit

Permalink
fix: add new T type parameter to Matchers (#18)
Browse files Browse the repository at this point in the history
Fixes the error "All declarations of 'Matchers' must have identical type parameters" caused by upgrading to @types/jest 24.0.20. See DefinitelyTyped/DefinitelyTyped#39982
  • Loading branch information
nokome authored and satya164 committed Nov 4, 2019
1 parent 7f3432e commit 6766582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare interface FileMatcherOptions {

declare global {
namespace jest {
interface Matchers<R> {
interface Matchers<R, T> {
toMatchFile: (
output: string,
filename?: string,
Expand Down

0 comments on commit 6766582

Please sign in to comment.