From e97a17cfb11f7c8000b5e5ae7090d190a7a4baf2 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Wed, 31 Jan 2024 14:25:13 -0700 Subject: [PATCH] Export type `TestingLibraryMatchers` from "./matchers" --- types/matchers-standalone.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 &