From aaf513a3ce586fdc368908ab9c8ae9ff99dcc4c6 Mon Sep 17 00:00:00 2001 From: Jeff Payan Date: Wed, 18 Sep 2019 15:10:32 -0700 Subject: [PATCH] add boolean as acceptable type for Matcher Add boolean type --- typings/matches.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/matches.d.ts b/typings/matches.d.ts index 1e7c433..791ae77 100644 --- a/typings/matches.d.ts +++ b/typings/matches.d.ts @@ -1,7 +1,7 @@ import { NativeTestInstance } from './query-helpers'; export type MatcherFunction = (content: string, element: HTMLElement) => boolean; -export type Matcher = string | RegExp | MatcherFunction; +export type Matcher = boolean | string | RegExp | MatcherFunction; export type NormalizerFn = (text: string) => string; export type SelectorFn = (element: NativeTestInstance) => boolean;