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 caffc56 commit 8b3f767Copy full SHA for 8b3f767
typings/get-queries-for-element.d.ts
@@ -13,9 +13,7 @@ export type BoundFunction<T> = T extends (
13
: never
14
export type BoundFunctions<T> = {[P in keyof T]: BoundFunction<T[P]>}
15
16
-export function getQueriesForElement(
+export function getQueriesForElement<T = typeof queries>(
17
element: HTMLElement,
18
- queriesToBind?:
19
- | BoundFunctions<typeof queries>
20
- | BoundFunctions<typeof queries>[],
21
-): BoundFunctions<typeof queries>
+ queriesToBind?: T,
+): BoundFunctions<T>
0 commit comments