@@ -399,7 +399,7 @@ function analyzeRuneVariables(
399399 continue ;
400400 }
401401 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
403403 case "$state" : {
404404 appendDeclareFunctionVirtualScripts ( globalName , [
405405 "<T>(initial: T): T" ,
@@ -415,7 +415,7 @@ function analyzeRuneVariables(
415415
416416 break ;
417417 }
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
419419 case "$derived" : {
420420 appendDeclareFunctionVirtualScripts ( globalName , [
421421 "<T>(expression: T): T" ,
@@ -425,35 +425,36 @@ function analyzeRuneVariables(
425425 ] ) ;
426426 break ;
427427 }
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
429429 case "$effect" : {
430430 appendDeclareFunctionVirtualScripts ( globalName , [
431431 "(fn: () => void | (() => void)): void" ,
432432 ] ) ;
433433 appendDeclareNamespaceVirtualScripts ( globalName , [
434434 "export function pre(fn: () => void | (() => void)): void;" ,
435+ "export function pending(): number;" ,
435436 "export function tracking(): boolean;" ,
436437 "export function root(fn: () => void | (() => void)): () => void;" ,
437438 ] ) ;
438439 break ;
439440 }
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
441442 case "$props" : {
442- // Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors .
443+ // NOTE: In the Svelte repository's `index.d.ts`, the return type is any, but that triggers `@typescript-eslint/no-unsafe-assignment`. To avoid this, use generics here .
443444 appendDeclareFunctionVirtualScripts ( globalName , [ "<T>(): T" ] ) ;
444445 appendDeclareNamespaceVirtualScripts ( globalName , [
445446 "export function id(): string;" ,
446447 ] ) ;
447448 break ;
448449 }
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
450451 case "$bindable" : {
451452 appendDeclareFunctionVirtualScripts ( globalName , [
452453 "<T>(fallback?: T): T" ,
453454 ] ) ;
454455 break ;
455456 }
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
457458 case "$inspect" : {
458459 appendDeclareFunctionVirtualScripts ( globalName , [
459460 `<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }` ,
@@ -463,7 +464,7 @@ function analyzeRuneVariables(
463464 ] ) ;
464465 break ;
465466 }
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
467468 case "$host" : {
468469 appendDeclareFunctionVirtualScripts ( globalName , [
469470 `<El extends HTMLElement = HTMLElement>(): El` ,
0 commit comments