diff --git a/packages/expect/src/types.ts b/packages/expect/src/types.ts index fd0d2a58b..ae97e2e91 100644 --- a/packages/expect/src/types.ts +++ b/packages/expect/src/types.ts @@ -108,8 +108,8 @@ export interface ExpectStatic AsymmetricMatchersContaining { (actual: T, message?: string): Assertion extend: (expects: MatchersObject) => void - anything: () => AsymmetricMatcher - any: (constructor: unknown) => AsymmetricMatcher + anything: () => any + any: (constructor: unknown) => any getState: () => MatcherState setState: (state: Partial) => void not: AsymmetricMatchersContaining @@ -202,7 +202,7 @@ export interface JestAssertion extends jest.Matchers, CustomMa * @example * expect(user).toEqual({ name: 'Alice', age: 30 }); */ - toEqual: (expected: DeeplyAllowMatchers) => void + toEqual: (expected: E) => void /** * Use to test that objects have the same types as well as structure. @@ -210,7 +210,7 @@ export interface JestAssertion extends jest.Matchers, CustomMa * @example * expect(user).toStrictEqual({ name: 'Alice', age: 30 }); */ - toStrictEqual: (expected: DeeplyAllowMatchers) => void + toStrictEqual: (expected: E) => void /** * Checks that a value is what you expect. It calls `Object.is` to compare values. @@ -240,7 +240,7 @@ export interface JestAssertion extends jest.Matchers, CustomMa * address: { city: 'Wonderland' } * }); */ - toMatchObject: (expected: DeeplyAllowMatchers) => void + toMatchObject: (expected: E) => void /** * Used when you want to check that an item is in a list.