From 77e60444d86d5dc606652da76fd52f326de197a3 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Thu, 15 Aug 2024 11:05:04 +0200 Subject: [PATCH] apply fix for https://github.com/storybookjs/storybook/issues/28883 --- code/lib/test/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/lib/test/src/index.ts b/code/lib/test/src/index.ts index 2af4cc76e854..e90104fe039b 100644 --- a/code/lib/test/src/index.ts +++ b/code/lib/test/src/index.ts @@ -1,3 +1,5 @@ +import type { BoundFunctions } from '@testing-library/dom'; + import type { LoaderFunction } from '@storybook/csf'; import { global } from '@storybook/global'; import { instrument } from '@storybook/instrumenter'; @@ -17,7 +19,7 @@ import { type queries, within } from './testing-library'; export * from './spy'; -type Queries = ReturnType>; +type Queries = BoundFunctions; declare module '@storybook/csf' { interface Canvas extends Queries {}