Skip to content

Commit aed35f4

Browse files
pschymaKent C. Dodds
authored and
Kent C. Dodds
committed
fix(TS): update Typings (#331)
Extend the typings of Query interface to match those from dom-testing-library.
1 parent 4302cdd commit aed35f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

typings/index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ import {queries, BoundFunction} from 'dom-testing-library'
33
export * from 'dom-testing-library'
44

55
interface Query extends Function {
6-
(container: HTMLElement, ...args: any[]): HTMLElement[] | HTMLElement | null
6+
(container: HTMLElement, ...args: any[]):
7+
| Error
8+
| Promise<HTMLElement[]>
9+
| Promise<HTMLElement>
10+
| HTMLElement[]
11+
| HTMLElement
12+
| null
713
}
814

915
interface Queries {

0 commit comments

Comments
 (0)