Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export type TestingLibraryMatchers from "./matchers" #576

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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