Skip to content

Commit

Permalink
fix: Export type TestingLibraryMatchers from "./matchers" (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 authored Feb 1, 2024
1 parent f7dc673 commit dd1c4dd
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit dd1c4dd

Please sign in to comment.