diff --git a/typings/get-queries-for-element.d.ts b/typings/get-queries-for-element.d.ts index 253d6ec4..6fe076f6 100644 --- a/typings/get-queries-for-element.d.ts +++ b/typings/get-queries-for-element.d.ts @@ -4,12 +4,12 @@ import * as queries from './queries' export type BoundFunction = T extends ( attribute: string, element: HTMLElement, - text: infer P, + text: Matcher, options: infer Q, ) => infer R - ? (text: P, options?: Q) => R - : T extends (a1: any, text: infer P, options: infer Q) => infer R - ? (text: P, options?: Q) => R + ? (text: Matcher, options?: Q) => R + : T extends (a1: any, text: Matcher, options: infer Q) => infer R + ? (text: Matcher, options?: Q) => R : never export type BoundFunctions = {[P in keyof T]: BoundFunction}