diff --git a/packages/svelte/src/internal/client/render.js b/packages/svelte/src/internal/client/render.js index d8948cfe08..d506b0532c 100644 --- a/packages/svelte/src/internal/client/render.js +++ b/packages/svelte/src/internal/client/render.js @@ -105,7 +105,7 @@ export function createRoot() { * @template {Record} Events * @param {import('../../main/public.js').ComponentType>} component * @param {{ - * target: Node; + * target: Element; * props?: Props; * events?: { [Property in keyof Events]: (e: Events[Property]) => any }; * context?: Map; @@ -128,7 +128,7 @@ export function mount(component, options) { * @template {Record} Events * @param {import('../../main/public.js').ComponentType>} component * @param {{ - * target: Node; + * target: Element; * props?: Props; * events?: { [Property in keyof Events]: (e: Events[Property]) => any }; * context?: Map; @@ -198,7 +198,7 @@ export function hydrate(component, options) { * @template {Record} Events * @param {import('../../main/public.js').ComponentType>} Component * @param {{ - * target: Node; + * target: Element; * anchor: null | Text; * props?: Props; * events?: { [Property in keyof Events]: (e: Events[Property]) => any };