Skip to content

Commit a51a86b

Browse files
NMinhNguyenKent C. Dodds
authored and
Kent C. Dodds
committed
fix(TS): use Queries from @testing-library/dom (#398)
1 parent 5f260bc commit a51a86b

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

typings/index.d.ts

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
1-
import {queries, BoundFunction} from '@testing-library/dom'
1+
import {queries, Queries, BoundFunction} from '@testing-library/dom'
22

33
export * from '@testing-library/dom'
44

5-
interface Query extends Function {
6-
(container: HTMLElement, ...args: any[]):
7-
| Error
8-
| Promise<HTMLElement[]>
9-
| Promise<HTMLElement>
10-
| HTMLElement[]
11-
| HTMLElement
12-
| null
13-
}
14-
15-
export interface Queries {
16-
[T: string]: Query
17-
}
18-
195
export type RenderResult<Q extends Queries = typeof queries> = {
206
container: HTMLElement
217
baseElement: HTMLElement

0 commit comments

Comments
 (0)