Skip to content

Commit

Permalink
fix: Add baseElement to render return type (#151)
Browse files Browse the repository at this point in the history
* fix: Add baseElement to render return type

* Set HTMLElement type to container and baseElement
  • Loading branch information
gnapse authored and Kent C. Dodds committed Aug 3, 2018
1 parent 37919b0 commit 9667967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export * from 'dom-testing-library'
type GetsAndQueries = ReturnType<typeof getQueriesForElement>

export interface RenderResult extends GetsAndQueries {
container: HTMLDivElement
container: HTMLElement
baseElement: HTMLElement
debug: (baseElement?: HTMLElement) => void
rerender: (ui: React.ReactElement<any>) => void
unmount: () => boolean
Expand Down

0 comments on commit 9667967

Please sign in to comment.