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

Fix type for normalizer filter function #13

Merged
merged 1 commit into from
May 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type BoundQueries<T> = { [P in keyof T]: Bound<T[P]> }
export type NativeTestInstance = Omit<ReactTestInstance, 'find' | 'findAllByProps' | 'findAllByType' | 'findByProps' | 'findByType' | 'instance'>

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 {
Expand Down