Merge branch 'elliott/add-variadic-snippets' of https://github.com/tcc-sejohnson/svelte into elliott/add-variadic-snippets

elliott/add-variadic-snippets
S. Elliott Johnson 7 months ago
commit fa49a91cf0

@ -196,7 +196,7 @@ declare const SnippetReturn: unique symbol;
* You can only call a snippet through the `{@render ...}` tag.
*/
export interface Snippet<T extends unknown[] = []> {
(...args: T): typeof SnippetReturn & {
(this: void, ...args: T): typeof SnippetReturn & {
_: 'functions passed to {@render ...} tags must use the `Snippet` type imported from "svelte"';
};
}

Loading…
Cancel
Save