diff --git a/packages/svelte/src/main/public.d.ts b/packages/svelte/src/main/public.d.ts index e98a627342..d799204088 100644 --- a/packages/svelte/src/main/public.d.ts +++ b/packages/svelte/src/main/public.d.ts @@ -195,7 +195,11 @@ declare const SnippetReturn: unique symbol; * You can only call a snippet through the `{@render ...}` tag. */ export interface Snippet { - (arg: T): typeof SnippetReturn; + ( + arg: T + ): typeof SnippetReturn & { + _: 'functions passed to {@render ...} tags must use the `Snippet` type imported from "svelte"'; + }; } interface DispatchOptions {