Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 910bcfc

Browse files
elyalvaradobcarroll22
authored andcommitted
fix: update type for normalizer filter function (#13)
1 parent 49f2b0d commit 910bcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type BoundQueries<T> = { [P in keyof T]: Bound<T[P]> }
104104
export type NativeTestInstance = Omit<ReactTestInstance, 'find' | 'findAllByProps' | 'findAllByType' | 'findByProps' | 'findByType' | 'instance'>
105105

106106
export type TextMatch = string | RegExp | ((value: string) => boolean)
107-
export type FilterFn = (value: string, index: number) => boolean
107+
export type FilterFn = (node: NativeTestInstance, index: number) => boolean
108108
export type NormalizerFn = (input: string) => string
109109

110110
export interface NormalizerOptions {

0 commit comments

Comments
 (0)