frontend-test-utils: fix TestApiPair type inference for tuple syntax

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-27 21:13:25 +01:00
parent a39b080302
commit 479282f38e
7 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ export type RenderTestAppOptions<TApiPairs extends any[] = any[]> = {
// @public
export type TestApiPair<TApi> =
| readonly [ApiRef<TApi>, TApi extends infer TImpl ? Partial<TImpl> : never]
| MockWithApiFactory<TApi>;
| MockWithApiFactory<NoInfer<TApi>>;
// @public
export type TestApiPairs<TApiPairs> = {
@@ -29,7 +29,7 @@ import {
*/
export type TestApiPair<TApi> =
| readonly [ApiRef<TApi>, TApi extends infer TImpl ? Partial<TImpl> : never]
| MockWithApiFactory<TApi>;
| MockWithApiFactory<NoInfer<TApi>>;
/**
* Represents an array of mock API implementation.