Skip to content

Commit dd1c4dd

Browse files
authored
fix: Export type TestingLibraryMatchers from "./matchers" (#576)
1 parent f7dc673 commit dd1c4dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

types/matchers-standalone.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import {type TestingLibraryMatchers} from './matchers'
2-
3-
type TLM = TestingLibraryMatchers<any, void>
1+
import {type TestingLibraryMatchers as _TLM} from './matchers'
42

53
interface MatcherReturnType {
64
pass: boolean
@@ -18,11 +16,13 @@ interface OverloadedMatchers {
1816

1917
declare namespace matchersStandalone {
2018
type MatchersStandalone = {
21-
[T in keyof TLM]: (
19+
[T in keyof _TLM<any, void>]: (
2220
expected: any,
23-
...rest: Parameters<TLM[T]>
21+
...rest: Parameters<_TLM<any, void>[T]>
2422
) => MatcherReturnType
2523
} & OverloadedMatchers
24+
25+
type TestingLibraryMatchers<E, R> = _TLM<E, R>
2626
}
2727

2828
declare const matchersStandalone: matchersStandalone.MatchersStandalone &

0 commit comments

Comments
 (0)