From 92da8ab11fe6a4c08646cb078c1101c650536560 Mon Sep 17 00:00:00 2001 From: Ely Alvarado Date: Sat, 4 May 2019 19:38:03 -0500 Subject: [PATCH] Fix type for normalizer filter function The options normalizer filter function receives the node element instead of a string. Fixed the typescript definition for it. --- src/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.d.ts b/src/index.d.ts index 354b3c7..0078379 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -104,7 +104,7 @@ type BoundQueries = { [P in keyof T]: Bound } export type NativeTestInstance = Omit export type TextMatch = string | RegExp | ((value: string) => boolean) -export type FilterFn = (value: string, index: number) => boolean +export type FilterFn = (node: NativeTestInstance, index: number) => boolean export type NormalizerFn = (input: string) => string export interface NormalizerOptions {