fix: this type

elliott/add-variadic-snippets
S. Elliott Johnson 2 years ago committed by GitHub
parent e76a80982c
commit 08f9be28d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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