From fcff44fe458603df673608e13ff688e4ec036fa8 Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Wed, 20 Mar 2024 10:13:45 +0100 Subject: [PATCH] fix: silence type error for type only available in Svelte 5 --- packages/svelte2tsx/svelte-shims-v4.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/svelte2tsx/svelte-shims-v4.d.ts b/packages/svelte2tsx/svelte-shims-v4.d.ts index 61efa681a..7f2d5c949 100644 --- a/packages/svelte2tsx/svelte-shims-v4.d.ts +++ b/packages/svelte2tsx/svelte-shims-v4.d.ts @@ -149,6 +149,7 @@ declare function __sveltets_2_cssProp(prop: Record): {}; declare function __sveltets_2_ensureSnippet(val: ReturnType | undefined | null): any; // @ts-ignore Svelte v3/v4 don't have this declare function __sveltets_2_snippet(): import('svelte').Snippet; +// @ts-ignore Svelte v3/v4 don't have this declare function __sveltets_2_snippet(t: T): import('svelte').Snippet<[T]>; /** @internal PRIVATE API, DO NOT USE */