We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965fb04 commit 0f7dc61Copy full SHA for 0f7dc61
src/index.ts
@@ -77,12 +77,12 @@ function isSelector(sel: SelectorArg): sel is Selector {
77
78
const bindFunction = <
79
T extends QueryName,
80
- Options = Parameters<typeof queries[T]>[2]
+ MatcherOptions = Parameters<typeof queries[T]>[2]
81
>(
82
queryName: T
83
) => {
84
const query = queryName.replace("find", "query") as T;
85
- return (matcher: Matcher, options?: Options) => {
+ return (matcher: Matcher, options?: MatcherOptions) => {
86
return Selector(
87
() =>
88
window.TestingLibraryDom[query](document.body, matcher, options) as
0 commit comments