1
1
import { Matcher , MatcherOptions } from './matches' ;
2
2
import { SelectorMatcherOptions } from './query-helpers' ;
3
- import { WaitForElementOptions } from './ wait-for-element ' ;
3
+ import { waitForOptions } from 'wait-for' ;
4
4
5
5
export type QueryByBoundAttribute = (
6
6
container : HTMLElement ,
@@ -14,7 +14,7 @@ export type FindAllByBoundAttribute = (
14
14
container : HTMLElement ,
15
15
id : Matcher ,
16
16
options ?: MatcherOptions ,
17
- waitForElementOptions ?: WaitForElementOptions ,
17
+ waitForElementOptions ?: waitForOptions ,
18
18
) => Promise < HTMLElement [ ] > ;
19
19
20
20
export type GetByBoundAttribute = ( container : HTMLElement , id : Matcher , options ?: MatcherOptions ) => HTMLElement ;
@@ -23,7 +23,7 @@ export type FindByBoundAttribute = (
23
23
container : HTMLElement ,
24
24
id : Matcher ,
25
25
options ?: MatcherOptions ,
26
- waitForElementOptions ?: WaitForElementOptions ,
26
+ waitForElementOptions ?: waitForOptions ,
27
27
) => Promise < HTMLElement > ;
28
28
29
29
export type QueryByText = ( container : HTMLElement , id : Matcher , options ?: SelectorMatcherOptions ) => HTMLElement | null ;
@@ -34,7 +34,7 @@ export type FindAllByText = (
34
34
container : HTMLElement ,
35
35
id : Matcher ,
36
36
options ?: SelectorMatcherOptions ,
37
- waitForElementOptions ?: WaitForElementOptions ,
37
+ waitForElementOptions ?: waitForOptions ,
38
38
) => Promise < HTMLElement [ ] > ;
39
39
40
40
export type GetByText = ( container : HTMLElement , id : Matcher , options ?: SelectorMatcherOptions ) => HTMLElement ;
@@ -43,7 +43,7 @@ export type FindByText = (
43
43
container : HTMLElement ,
44
44
id : Matcher ,
45
45
options ?: SelectorMatcherOptions ,
46
- waitForElementOptions ?: WaitForElementOptions ,
46
+ waitForElementOptions ?: waitForOptions ,
47
47
) => Promise < HTMLElement > ;
48
48
49
49
export interface ByRoleOptions extends MatcherOptions {
@@ -74,14 +74,14 @@ export type FindByRole = (
74
74
container : HTMLElement ,
75
75
role : Matcher ,
76
76
options ?: ByRoleOptions ,
77
- waitForElementOptions ?: WaitForElementOptions ,
77
+ waitForElementOptions ?: waitForOptions ,
78
78
) => Promise < HTMLElement > ;
79
79
80
80
export type FindAllByRole = (
81
81
container : HTMLElement ,
82
82
role : Matcher ,
83
83
options ?: ByRoleOptions ,
84
- waitForElementOptions ?: WaitForElementOptions ,
84
+ waitForElementOptions ?: waitForOptions ,
85
85
) => Promise < HTMLElement [ ] > ;
86
86
87
87
export const getByLabelText : GetByText ;
0 commit comments