We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53bfe3f + 4487694 commit b08c775Copy full SHA for b08c775
types/index.d.ts
@@ -5,17 +5,17 @@ import { ComponentChild } from 'preact'
5
export * from '@testing-library/dom'
6
7
export type RenderResult<Q extends Queries = typeof queries> = {
8
- container: HTMLElement
9
- baseElement: HTMLElement
10
- debug: (baseElement?: HTMLElement | DocumentFragment) => void
+ container: Element
+ baseElement: Element
+ debug: (baseElement?: Element | DocumentFragment) => void
11
rerender: (ui: ComponentChild) => void
12
unmount: () => boolean
13
asFragment: () => DocumentFragment
14
} & { [P in keyof Q]: BoundFunction<Q[P]> }
15
16
export interface RenderOptions<Q extends Queries = typeof queries> {
17
- container?: HTMLElement
18
- baseElement?: HTMLElement
+ container?: Element
+ baseElement?: Element
19
queries?: Q
20
wrapper?: ComponentChild
21
}
0 commit comments