From 8fe2b98cdda97e2683af315a95adb2c4b0ee4fca Mon Sep 17 00:00:00 2001 From: Nick McCurdy Date: Fri, 20 Nov 2020 17:26:34 -0500 Subject: [PATCH] fix(types): allow all elements --- types/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 6a45e3e..a5373d7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -22,15 +22,16 @@ type Omit = Pick> * Render a Component into the Document. */ export type RenderResult = { - container: HTMLElement + container: Element + component: SvelteComponent component: SvelteComponentTyped - debug: (el?: HTMLElement | DocumentFragment) => void + debug: (el?: Element | DocumentFragment) => void rerender: (options: SvelteComponentOptions) => void unmount: () => void } & { [P in keyof Q]: BoundFunction } export interface RenderOptions { - container?: HTMLElement + container?: Element queries?: Q }