diff --git a/typings/get-queries-for-element.d.ts b/typings/get-queries-for-element.d.ts index 3b173a59..253d6ec4 100644 --- a/typings/get-queries-for-element.d.ts +++ b/typings/get-queries-for-element.d.ts @@ -13,7 +13,21 @@ export type BoundFunction = T extends ( : never export type BoundFunctions = {[P in keyof T]: BoundFunction} -export function getQueriesForElement( +interface Query extends Function { + (container: HTMLElement, ...args: any[]): + | Error + | Promise + | Promise + | HTMLElement[] + | HTMLElement + | null +} + +interface Queries { + [T: string]: Query +} + +export function getQueriesForElement( element: HTMLElement, queriesToBind?: T, ): BoundFunctions