Skip to content

Commit

Permalink
fix(within): Types should list custom and base queries
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 3, 2021
1 parent d3e008b commit 7070e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/get-queries-for-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export type BoundFunctions<Q> = Q extends typeof queries
findAllByTestId<T extends HTMLElement = HTMLElement>(
...args: Parameters<BoundFunction<queries.FindAllByBoundAttribute<T>>>
): ReturnType<queries.FindAllByBoundAttribute<T>>
} & {
[P in keyof Q]: BoundFunction<Q[P]>
}
: {
[P in keyof Q]: BoundFunction<Q[P]>
Expand Down

0 comments on commit 7070e6d

Please sign in to comment.