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