@@ -19,7 +19,7 @@ export type FindAllByBoundAttribute = (
19
19
id : Matcher ,
20
20
options ?: MatcherOptions ,
21
21
waitForElementOptions ?: WaitForElementOptions
22
- ) => Promise < HTMLElement [ ] > | Error
22
+ ) => Promise < HTMLElement [ ] >
23
23
24
24
export type GetByBoundAttribute = (
25
25
container : HTMLElement ,
@@ -32,7 +32,7 @@ export type FindByBoundAttribute = (
32
32
id : Matcher ,
33
33
options ?: MatcherOptions ,
34
34
waitForElementOptions ?: WaitForElementOptions
35
- ) => Promise < HTMLElement > | Error
35
+ ) => Promise < HTMLElement >
36
36
37
37
export type QueryByText = (
38
38
container : HTMLElement ,
@@ -51,7 +51,7 @@ export type FindAllByText = (
51
51
id : Matcher ,
52
52
options ?: SelectorMatcherOptions ,
53
53
waitForElementOptions ?: WaitForElementOptions
54
- ) => Promise < HTMLElement [ ] > | Error
54
+ ) => Promise < HTMLElement [ ] >
55
55
56
56
export type GetByText = (
57
57
container : HTMLElement ,
@@ -64,7 +64,7 @@ export type FindByText = (
64
64
id : Matcher ,
65
65
options ?: SelectorMatcherOptions ,
66
66
waitForElementOptions ?: WaitForElementOptions
67
- ) => Promise < HTMLElement > | Error
67
+ ) => Promise < HTMLElement >
68
68
69
69
export const getByLabelText : GetByText
70
70
export const getAllByLabelText : AllByText
0 commit comments