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

Commit 06c106e

Browse files
committed
fix: add wait-for-element-to-be-removed to index.d.ts
1 parent f5ae050 commit 06c106e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

typings/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,4 @@ export * from './queries';
5959
export * from './query-helpers';
6060
export * from './wait';
6161
export * from './wait-for-element';
62+
export * from './wait-for-element-to-be-removed';

typings/matches.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
import { NativeTestInstance } from './query-helpers';
2+
13
export type MatcherFunction = (content: string, element: HTMLElement) => boolean;
24
export type Matcher = string | RegExp | MatcherFunction;
35

46
export type NormalizerFn = (text: string) => string;
7+
export type SelectorFn = (element: NativeTestInstance) => boolean;
58

69
export interface MatcherOptions {
710
exact?: boolean;
811
/** Use normalizer with getDefaultNormalizer instead */
912
trim?: boolean;
1013
/** Use normalizer with getDefaultNormalizer instead */
1114
collapseWhitespace?: boolean;
15+
selector?: SelectorFn;
1216
normalizer?: NormalizerFn;
1317
}
1418

0 commit comments

Comments
 (0)