File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " svelte " : patch
3
+ ---
4
+
5
+ fix: small legibility improvement in ` Snippet ` type hint
Original file line number Diff line number Diff line change @@ -285,9 +285,9 @@ export interface Snippet<Parameters extends unknown[] = []> {
285
285
// rest parameter type, which is not supported. If rest parameters are added
286
286
// in the future, the condition can be removed.
287
287
...args : number extends Parameters [ 'length' ] ? never : Parameters
288
- ) : typeof SnippetReturn & {
289
- _ : 'functions passed to {@render ...} tags must use the ` Snippet` type imported from " svelte"' ;
290
- } ;
288
+ ) : {
289
+ ' {@render ...} must be called with a Snippet' : "import type { Snippet } from ' svelte'" ;
290
+ } & typeof SnippetReturn ;
291
291
}
292
292
293
293
interface DispatchOptions {
Original file line number Diff line number Diff line change @@ -282,9 +282,9 @@ declare module 'svelte' {
282
282
// rest parameter type, which is not supported. If rest parameters are added
283
283
// in the future, the condition can be removed.
284
284
...args : number extends Parameters [ 'length' ] ? never : Parameters
285
- ) : typeof SnippetReturn & {
286
- _ : 'functions passed to {@render ...} tags must use the ` Snippet` type imported from " svelte"' ;
287
- } ;
285
+ ) : {
286
+ ' {@render ...} must be called with a Snippet' : "import type { Snippet } from ' svelte'" ;
287
+ } & typeof SnippetReturn ;
288
288
}
289
289
290
290
interface DispatchOptions {
You can’t perform that action at this time.
0 commit comments