Skip to content

Commit e18e5d2

Browse files
committed
fix
1 parent b86204e commit e18e5d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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;
108+
* target: Element | Document | ShadowRoot;
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;
131+
* target: Element | Document | ShadowRoot;
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;
201+
* target: Element | Document | ShadowRoot;
202202
* anchor: null | Text;
203203
* props?: Props;
204204
* events?: { [Property in keyof Events]: (e: Events[Property]) => any };

0 commit comments

Comments
 (0)