Skip to content

Commit 8fe2b98

Browse files
nickservyanick
authored andcommitted
fix(types): allow all elements
1 parent d3f2608 commit 8fe2b98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

types/index.d.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
2222
* Render a Component into the Document.
2323
*/
2424
export type RenderResult<Q extends Queries = typeof queries> = {
25-
container: HTMLElement
25+
container: Element
26+
component: SvelteComponent
2627
component: SvelteComponentTyped
27-
debug: (el?: HTMLElement | DocumentFragment) => void
28+
debug: (el?: Element | DocumentFragment) => void
2829
rerender: (options: SvelteComponentOptions) => void
2930
unmount: () => void
3031
} & { [P in keyof Q]: BoundFunction<Q[P]> }
3132

3233
export interface RenderOptions<Q extends Queries = typeof queries> {
33-
container?: HTMLElement
34+
container?: Element
3435
queries?: Q
3536
}
3637

0 commit comments

Comments
 (0)