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 44
55### Fixes
66
7+ - ` [expect] ` Allow again ` expect.Matchers ` generic with single value ([ #11986 ] ( https://github.com/facebook/jest/pull/11986 ) )
8+
79### Chore & Maintenance
810
911### Performance
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ const expectExport = expect as Expect;
431431
432432declare namespace expectExport {
433433 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 > { }
435435}
436436
437437export = 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