Skip to content

Commit 9667967

Browse files
gnapseKent C. Dodds
authored and
Kent C. Dodds
committed
fix: Add baseElement to render return type (#151)
* fix: Add baseElement to render return type * Set HTMLElement type to container and baseElement
1 parent 37919b0 commit 9667967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typings/index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ export * from 'dom-testing-library'
55
type GetsAndQueries = ReturnType<typeof getQueriesForElement>
66

77
export interface RenderResult extends GetsAndQueries {
8-
container: HTMLDivElement
8+
container: HTMLElement
9+
baseElement: HTMLElement
910
debug: (baseElement?: HTMLElement) => void
1011
rerender: (ui: React.ReactElement<any>) => void
1112
unmount: () => boolean

0 commit comments

Comments
 (0)