We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TestingLibraryMatchers
1 parent f7dc673 commit dd1c4ddCopy full SHA for dd1c4dd
types/matchers-standalone.d.ts
@@ -1,6 +1,4 @@
1
-import {type TestingLibraryMatchers} from './matchers'
2
-
3
-type TLM = TestingLibraryMatchers<any, void>
+import {type TestingLibraryMatchers as _TLM} from './matchers'
4
5
interface MatcherReturnType {
6
pass: boolean
@@ -18,11 +16,13 @@ interface OverloadedMatchers {
18
16
19
17
declare namespace matchersStandalone {
20
type MatchersStandalone = {
21
- [T in keyof TLM]: (
+ [T in keyof _TLM<any, void>]: (
22
expected: any,
23
- ...rest: Parameters<TLM[T]>
+ ...rest: Parameters<_TLM<any, void>[T]>
24
) => MatcherReturnType
25
} & OverloadedMatchers
+
+ type TestingLibraryMatchers<E, R> = _TLM<E, R>
26
}
27
28
declare const matchersStandalone: matchersStandalone.MatchersStandalone &
0 commit comments