diff --git a/packages/svelte2tsx/svelte-shims.d.ts b/packages/svelte2tsx/svelte-shims.d.ts index e25f4749a..0a2d6941c 100644 --- a/packages/svelte2tsx/svelte-shims.d.ts +++ b/packages/svelte2tsx/svelte-shims.d.ts @@ -65,7 +65,7 @@ interface Svelte2TsxComponentConstructorParameters { /** * An HTMLElement to render to. This option is required. */ - target: Element | ShadowRoot; + target: Element | Document | ShadowRoot; /** * A child of `target` to render the component immediately before. */