Skip to content

Commit 7070e6d

Browse files
committed
fix(within): Types should list custom and base queries
1 parent d3e008b commit 7070e6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/get-queries-for-element.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export type BoundFunctions<Q> = Q extends typeof queries
153153
findAllByTestId<T extends HTMLElement = HTMLElement>(
154154
...args: Parameters<BoundFunction<queries.FindAllByBoundAttribute<T>>>
155155
): ReturnType<queries.FindAllByBoundAttribute<T>>
156+
} & {
157+
[P in keyof Q]: BoundFunction<Q[P]>
156158
}
157159
: {
158160
[P in keyof Q]: BoundFunction<Q[P]>

0 commit comments

Comments
 (0)