Skip to content

Commit

Permalink
fix(types): allow all elements
Browse files Browse the repository at this point in the history
  • Loading branch information
nickserv authored and yanick committed Apr 7, 2022
1 parent a6cc764 commit 742d4a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
* Render a Component into the Document.
*/
export type RenderResult<Q extends Queries = typeof queries> = {
container: HTMLElement
container: Element
component: SvelteComponent
debug: (el?: HTMLElement | DocumentFragment) => void
debug: (el?: Element | DocumentFragment) => void
rerender: (options: SvelteComponentOptions) => void
unmount: () => void
} & { [P in keyof Q]: BoundFunction<Q[P]> }

export interface RenderOptions<Q extends Queries = typeof queries> {
container?: HTMLElement
container?: Element
queries?: Q
}

Expand Down

0 comments on commit 742d4a7

Please sign in to comment.