From e695e17b8f8fc847130da26f18bfd2c5e3121516 Mon Sep 17 00:00:00 2001 From: Miroslav Simulcik Date: Wed, 17 Apr 2019 14:57:33 +0200 Subject: [PATCH] Fix typings of getQueriesForElement --- typings/get-queries-for-element.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/typings/get-queries-for-element.d.ts b/typings/get-queries-for-element.d.ts index 0db549b3..3b173a59 100644 --- a/typings/get-queries-for-element.d.ts +++ b/typings/get-queries-for-element.d.ts @@ -13,9 +13,7 @@ export type BoundFunction = T extends ( : never export type BoundFunctions = {[P in keyof T]: BoundFunction} -export function getQueriesForElement( +export function getQueriesForElement( element: HTMLElement, - queriesToBind?: - | BoundFunctions - | BoundFunctions[], -): BoundFunctions + queriesToBind?: T, +): BoundFunctions