We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Queries
1 parent 5f260bc commit a51a86bCopy full SHA for a51a86b
typings/index.d.ts
@@ -1,21 +1,7 @@
1
-import {queries, BoundFunction} from '@testing-library/dom'
+import {queries, Queries, BoundFunction} from '@testing-library/dom'
2
3
export * from '@testing-library/dom'
4
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
19
export type RenderResult<Q extends Queries = typeof queries> = {
20
container: HTMLElement
21
baseElement: HTMLElement
0 commit comments