mirror of https://github.com/sveltejs/svelte
fix: allow use of document root as target in typescript (#7554)
It is not possible to use typescript when using `target: document` during component initialization, because target can only be of type Element or ShadowRoot. This means that it is not possible to hydrate the entire document when managing the <html> element as a Svelte component. This commit fixes this by allowing documents to be targets.pull/8425/head
parent
aa4d0fc264
commit
d49b568019
Loading…
Reference in new issue