diff --git a/types/matchers-standalone.d.ts b/types/matchers-standalone.d.ts index b8dea83..d2bb31f 100644 --- a/types/matchers-standalone.d.ts +++ b/types/matchers-standalone.d.ts @@ -1,6 +1,4 @@ -import {type TestingLibraryMatchers} from './matchers' - -type TLM = TestingLibraryMatchers +import {type TestingLibraryMatchers as _TLM} from './matchers' interface MatcherReturnType { pass: boolean @@ -18,11 +16,13 @@ interface OverloadedMatchers { declare namespace matchersStandalone { type MatchersStandalone = { - [T in keyof TLM]: ( + [T in keyof _TLM]: ( expected: any, - ...rest: Parameters + ...rest: Parameters<_TLM[T]> ) => MatcherReturnType } & OverloadedMatchers + + type TestingLibraryMatchers = _TLM } declare const matchersStandalone: matchersStandalone.MatchersStandalone &