Skip to content

Commit

Permalink
Merge pull request #34 from testing-library/allow-all-elements
Browse files Browse the repository at this point in the history
fix(types): allow all elements
  • Loading branch information
nickmccurdy committed Nov 30, 2020
2 parents 53bfe3f + 4487694 commit b08c775
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { ComponentChild } from 'preact'
export * from '@testing-library/dom'

export type RenderResult<Q extends Queries = typeof queries> = {
container: HTMLElement
baseElement: HTMLElement
debug: (baseElement?: HTMLElement | DocumentFragment) => void
container: Element
baseElement: Element
debug: (baseElement?: Element | DocumentFragment) => void
rerender: (ui: ComponentChild) => void
unmount: () => boolean
asFragment: () => DocumentFragment
} & { [P in keyof Q]: BoundFunction<Q[P]> }

export interface RenderOptions<Q extends Queries = typeof queries> {
container?: HTMLElement
baseElement?: HTMLElement
container?: Element
baseElement?: Element
queries?: Q
wrapper?: ComponentChild
}
Expand Down

0 comments on commit b08c775

Please sign in to comment.