@@ -108,8 +108,8 @@ export interface ExpectStatic
108
108
AsymmetricMatchersContaining {
109
109
< T > ( actual : T , message ?: string ) : Assertion < T >
110
110
extend : ( expects : MatchersObject ) => void
111
- anything : ( ) => AsymmetricMatcher < unknown >
112
- any : ( constructor : unknown ) => AsymmetricMatcher < unknown >
111
+ anything : ( ) => any
112
+ any : ( constructor : unknown ) => any
113
113
getState : ( ) => MatcherState
114
114
setState : ( state : Partial < MatcherState > ) => void
115
115
not : AsymmetricMatchersContaining
@@ -202,15 +202,15 @@ export interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMa
202
202
* @example
203
203
* expect(user).toEqual({ name: 'Alice', age: 30 });
204
204
*/
205
- toEqual : < E > ( expected : DeeplyAllowMatchers < E > ) => void
205
+ toEqual : < E > ( expected : E ) => void
206
206
207
207
/**
208
208
* Use to test that objects have the same types as well as structure.
209
209
*
210
210
* @example
211
211
* expect(user).toStrictEqual({ name: 'Alice', age: 30 });
212
212
*/
213
- toStrictEqual : < E > ( expected : DeeplyAllowMatchers < E > ) => void
213
+ toStrictEqual : < E > ( expected : E ) => void
214
214
215
215
/**
216
216
* Checks that a value is what you expect. It calls `Object.is` to compare values.
@@ -240,7 +240,7 @@ export interface JestAssertion<T = any> extends jest.Matchers<void, T>, CustomMa
240
240
* address: { city: 'Wonderland' }
241
241
* });
242
242
*/
243
- toMatchObject : < E extends object | any [ ] > ( expected : DeeplyAllowMatchers < E > ) => void
243
+ toMatchObject : < E extends object | any [ ] > ( expected : E ) => void
244
244
245
245
/**
246
246
* Used when you want to check that an item is in a list.
0 commit comments