Skip to content

Commit a920e21

Browse files
committed
Remove Error as a possible return value since errors are thrown
1 parent ba251ed commit a920e21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typings/queries.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type FindAllByBoundAttribute = (
1919
id: Matcher,
2020
options?: MatcherOptions,
2121
waitForElementOptions?: WaitForElementOptions
22-
) => Promise<HTMLElement[]> | Error
22+
) => Promise<HTMLElement[]>
2323

2424
export type GetByBoundAttribute = (
2525
container: HTMLElement,
@@ -32,7 +32,7 @@ export type FindByBoundAttribute = (
3232
id: Matcher,
3333
options?: MatcherOptions,
3434
waitForElementOptions?: WaitForElementOptions
35-
) => Promise<HTMLElement> | Error
35+
) => Promise<HTMLElement>
3636

3737
export type QueryByText = (
3838
container: HTMLElement,
@@ -51,7 +51,7 @@ export type FindAllByText = (
5151
id: Matcher,
5252
options?: SelectorMatcherOptions,
5353
waitForElementOptions?: WaitForElementOptions
54-
) => Promise<HTMLElement[]> | Error
54+
) => Promise<HTMLElement[]>
5555

5656
export type GetByText = (
5757
container: HTMLElement,
@@ -64,7 +64,7 @@ export type FindByText = (
6464
id: Matcher,
6565
options?: SelectorMatcherOptions,
6666
waitForElementOptions?: WaitForElementOptions
67-
) => Promise<HTMLElement> | Error
67+
) => Promise<HTMLElement>
6868

6969
export const getByLabelText: GetByText
7070
export const getAllByLabelText: AllByText

0 commit comments

Comments
 (0)