Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions types/matchers-standalone.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {type TestingLibraryMatchers} from './matchers'

type TLM = TestingLibraryMatchers<any, void>
import {type TestingLibraryMatchers as _TLM} from './matchers'

interface MatcherReturnType {
pass: boolean
Expand All @@ -18,11 +16,13 @@ interface OverloadedMatchers {

declare namespace matchersStandalone {
type MatchersStandalone = {
[T in keyof TLM]: (
[T in keyof _TLM<any, void>]: (
expected: any,
...rest: Parameters<TLM[T]>
...rest: Parameters<_TLM<any, void>[T]>
) => MatcherReturnType
} & OverloadedMatchers

type TestingLibraryMatchers<E, R> = _TLM<E, R>
}

declare const matchersStandalone: matchersStandalone.MatchersStandalone &
Expand Down