@@ -399,7 +399,7 @@ function analyzeRuneVariables(
399
399
continue ;
400
400
}
401
401
switch ( globalName ) {
402
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L2679
402
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3093
403
403
case "$state" : {
404
404
appendDeclareFunctionVirtualScripts ( globalName , [
405
405
"<T>(initial: T): T" ,
@@ -415,7 +415,7 @@ function analyzeRuneVariables(
415
415
416
416
break ;
417
417
}
418
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L2833
418
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3247
419
419
case "$derived" : {
420
420
appendDeclareFunctionVirtualScripts ( globalName , [
421
421
"<T>(expression: T): T" ,
@@ -425,45 +425,46 @@ function analyzeRuneVariables(
425
425
] ) ;
426
426
break ;
427
427
}
428
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L2893
428
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3307
429
429
case "$effect" : {
430
430
appendDeclareFunctionVirtualScripts ( globalName , [
431
431
"(fn: () => void | (() => void)): void" ,
432
432
] ) ;
433
433
appendDeclareNamespaceVirtualScripts ( globalName , [
434
434
"export function pre(fn: () => void | (() => void)): void;" ,
435
+ "export function pending(): number;" ,
435
436
"export function tracking(): boolean;" ,
436
437
"export function root(fn: () => void | (() => void)): () => void;" ,
437
438
] ) ;
438
439
break ;
439
440
}
440
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L2997
441
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3416
441
442
case "$props" : {
442
443
// Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors.
443
- appendDeclareFunctionVirtualScripts ( globalName , [ "<T>(): T " ] ) ;
444
+ appendDeclareFunctionVirtualScripts ( globalName , [ "any " ] ) ;
444
445
appendDeclareNamespaceVirtualScripts ( globalName , [
445
446
"export function id(): string;" ,
446
447
] ) ;
447
448
break ;
448
449
}
449
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L3038
450
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3459
450
451
case "$bindable" : {
451
452
appendDeclareFunctionVirtualScripts ( globalName , [
452
453
"<T>(fallback?: T): T" ,
453
454
] ) ;
454
455
break ;
455
456
}
456
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L3081
457
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3502
457
458
case "$inspect" : {
458
459
appendDeclareFunctionVirtualScripts ( globalName , [
459
- `<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }` ,
460
+ `<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }; ` ,
460
461
] ) ;
461
462
appendDeclareNamespaceVirtualScripts ( globalName , [
462
463
"export function trace(name?: string): void;" ,
463
464
] ) ;
464
465
break ;
465
466
}
466
- // See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d /packages/svelte/types/index.d.ts#L3144
467
+ // See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d /packages/svelte/types/index.d.ts#L3565
467
468
case "$host" : {
468
469
appendDeclareFunctionVirtualScripts ( globalName , [
469
470
`<El extends HTMLElement = HTMLElement>(): El` ,
0 commit comments