From 73125a6fd698a76fa13b58ec735ce242cdbdd094 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Wed, 18 Sep 2024 14:54:27 +0200 Subject: [PATCH] fix: silence type error in old d.ts files svelte-jsx and svelte-shims are used for Svelte 3 only, and are likely out of date, yet we don't want to invest time into adjusting them anymore, therefore silence any type errors in it. Helps with #2498 --- packages/svelte2tsx/svelte-jsx.d.ts | 2 ++ packages/svelte2tsx/svelte-shims.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/svelte2tsx/svelte-jsx.d.ts b/packages/svelte2tsx/svelte-jsx.d.ts index 68307ae47..5c576f715 100644 --- a/packages/svelte2tsx/svelte-jsx.d.ts +++ b/packages/svelte2tsx/svelte-jsx.d.ts @@ -1,4 +1,6 @@ /// +// @ts-nocheck +// nocheck because we don't want to adjust this anymore (only used for Svelte 3) declare namespace svelteHTML { diff --git a/packages/svelte2tsx/svelte-shims.d.ts b/packages/svelte2tsx/svelte-shims.d.ts index 3b96603e2..b7be2cbcc 100644 --- a/packages/svelte2tsx/svelte-shims.d.ts +++ b/packages/svelte2tsx/svelte-shims.d.ts @@ -1,3 +1,5 @@ +// @ts-nocheck +// nocheck because we don't want to adjust this anymore (only used for Svelte 3) // Whenever a ambient declaration changes, its number should be increased // This way, we avoid the situation where multiple ambient versions of svelte2tsx // are loaded and their declarations conflict each other