Skip to content

Commit 4c0d3e9

Browse files
committed
Update types and docs
1 parent b06d161 commit 4c0d3e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/typedefs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {BoundFunctions, Matcher, MatcherOptions, SelectorMatcherOptions, WaitForElementOptions} from '@testing-library/dom'
1+
import {BoundFunctions, Matcher, MatcherOptions, SelectorMatcherOptions, WaitForElementOptions, BoundFunction} from '@testing-library/dom'
22
import {ElementHandle} from 'puppeteer'
33

44
type Element = ElementHandle
@@ -61,6 +61,8 @@ interface IQueryMethods {
6161
findAllByDisplayValue(el: Element, m: Matcher, opts?: SelectorMatcherOptions, waitForOpts?: WaitForElementOptions): Promise<Element[]>
6262
}
6363

64+
type Test = BoundFunction<IQueryMethods["queryByText"]>
65+
6466
export interface IScopedQueryUtils extends BoundFunctions<IQueryMethods> {
6567
getQueriesForElement(): IScopedQueryUtils
6668
getNodeText(): Promise<string>

0 commit comments

Comments
 (0)