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 {}