From 7cef403891cdb44a9928b0f53bcf6e46e252657e Mon Sep 17 00:00:00 2001 From: paoloricciuti Date: Wed, 1 Apr 2026 18:10:26 +0200 Subject: [PATCH] fix: update svelte_visitors type to accept any nodes This allows TypeScript node visitor overrides to be included without type errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- packages/svelte/src/compiler/print/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/compiler/print/index.js b/packages/svelte/src/compiler/print/index.js index 62634109dc..33d5816ace 100644 --- a/packages/svelte/src/compiler/print/index.js +++ b/packages/svelte/src/compiler/print/index.js @@ -326,7 +326,7 @@ const css_visitors = { /** * @param {AST.JSComment[]} comments - * @returns {Visitors} + * @returns {Visitors} */ const svelte_visitors = (comments) => ({ Root(node, context) {