From 08f9be28d7abb05238dfde19562d4643bfa306bc Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Fri, 22 Dec 2023 15:34:17 -0500 Subject: [PATCH] fix: this type --- packages/svelte/src/main/public.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/main/public.d.ts b/packages/svelte/src/main/public.d.ts index baae7d4d12..f916a158d6 100644 --- a/packages/svelte/src/main/public.d.ts +++ b/packages/svelte/src/main/public.d.ts @@ -196,7 +196,7 @@ declare const SnippetReturn: unique symbol; * You can only call a snippet through the `{@render ...}` tag. */ export interface Snippet { - (...args: T): typeof SnippetReturn & { + (this: void, ...args: T): typeof SnippetReturn & { _: 'functions passed to {@render ...} tags must use the `Snippet` type imported from "svelte"'; }; }