Skip to content

Commit

Permalink
Fix broken .not/.resolves/.rejects types
Browse files Browse the repository at this point in the history
  • Loading branch information
mattphillips committed Jan 31, 2020
1 parent a0a77c1 commit c2e8798
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/// <reference types="jest" />

declare namespace jest {
type ChainedMatchers<R> = { [K in keyof jest.Matchers<R>]: jest.Matchers<ChainedMatchers<R>>[K] };
interface ChainedMatchers<T>
extends jest.JestMatchersShape<
Matchers<ChainedMatchers<T>, T>,
Matchers<Promise<ChainedMatchers<T>>, T>
> {}

interface Expect {
/**
Expand Down

0 comments on commit c2e8798

Please sign in to comment.