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

Commit a72fb3f

Browse files
jeffreyffsbcarroll22
authored andcommitted
fix(types): add boolean as acceptable type for Matcher (#59)
1 parent 24c97fe commit a72fb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/matches.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NativeTestInstance } from './query-helpers';
22

33
export type MatcherFunction = (content: string, element: HTMLElement) => boolean;
4-
export type Matcher = string | RegExp | MatcherFunction;
4+
export type Matcher = boolean | string | RegExp | MatcherFunction;
55

66
export type NormalizerFn = (text: string) => string;
77
export type SelectorFn = (element: NativeTestInstance) => boolean;

0 commit comments

Comments
 (0)