File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### Fixes
6
6
7
+ - ` [expect] ` Allow again ` expect.Matchers ` generic with single value ([ #11986 ] ( https://github.com/facebook/jest/pull/11986 ) )
8
+
7
9
### Chore & Maintenance
8
10
9
11
### Performance
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ const expectExport = expect as Expect;
431
431
432
432
declare namespace expectExport {
433
433
export type MatcherState = JestMatcherState ;
434
- export interface Matchers < R , T > extends MatcherInterface < R , T > { }
434
+ export interface Matchers < R , T = unknown > extends MatcherInterface < R , T > { }
435
435
}
436
436
437
437
export = expectExport ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import type * as expect from 'expect' ;
9
+
10
+ export type M = expect . Matchers < void , unknown > ;
11
+ export type N = expect . Matchers < void > ;
12
+ // @ts -expect-error
13
+ export type E = expect . Matchers < > ;
You can’t perform that action at this time.
0 commit comments