Skip to content

Commit d14efd8

Browse files
committed
revert this change, save for a separate PR
1 parent 18f87ab commit d14efd8

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.changeset/metal-lobsters-burn.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/svelte/src/internal/client/render.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function createRoot() {
105105
* @template {Record<string, any>} Events
106106
* @param {import('../../main/public.js').ComponentType<import('../../main/public.js').SvelteComponent<Props, Events>>} component
107107
* @param {{
108-
* target: Element | Document | ShadowRoot;
108+
* target: Node;
109109
* props?: Props;
110110
* events?: { [Property in keyof Events]: (e: Events[Property]) => any };
111111
* context?: Map<any, any>;
@@ -128,7 +128,7 @@ export function mount(component, options) {
128128
* @template {Record<string, any>} Events
129129
* @param {import('../../main/public.js').ComponentType<import('../../main/public.js').SvelteComponent<Props, Events>>} component
130130
* @param {{
131-
* target: Element | Document | ShadowRoot;
131+
* target: Node;
132132
* props?: Props;
133133
* events?: { [Property in keyof Events]: (e: Events[Property]) => any };
134134
* context?: Map<any, any>;
@@ -198,7 +198,7 @@ export function hydrate(component, options) {
198198
* @template {Record<string, any>} Events
199199
* @param {import('../../main/public.js').ComponentType<import('../../main/public.js').SvelteComponent<Props, Events>>} Component
200200
* @param {{
201-
* target: Element | Document | ShadowRoot;
201+
* target: Node;
202202
* anchor: null | Text;
203203
* props?: Props;
204204
* events?: { [Property in keyof Events]: (e: Events[Property]) => any };

0 commit comments

Comments
 (0)