@@ -339,25 +339,23 @@ function analyzeRuneVariables(
339339 continue ;
340340 }
341341 switch ( globalName ) {
342- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2646
342+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2299
343343 case "$state" : {
344344 appendDeclareFunctionVirtualScripts ( globalName , [
345345 "<T>(initial: T): T" ,
346346 "<T>(): T | undefined" ,
347347 ] ) ;
348348 appendDeclareNamespaceVirtualScripts ( globalName , [
349- "export function frozen <T>(initial: T): Readonly<T> ;" ,
350- "export function frozen <T>(): Readonly<T> | undefined;" ,
349+ "export function raw <T>(initial: T): T ;" ,
350+ "export function raw <T>(): T | undefined;" ,
351351 ] ) ;
352352 appendDeclareNamespaceVirtualScripts ( globalName , [
353353 "export function snapshot<T>(state: T): T;" ,
354354 ] ) ;
355- appendDeclareNamespaceVirtualScripts ( globalName , [
356- "export function is(a: any, b: any): boolean;" ,
357- ] ) ;
355+
358356 break ;
359357 }
360- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2751
358+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2453
361359 case "$derived" : {
362360 appendDeclareFunctionVirtualScripts ( globalName , [
363361 "<T>(expression: T): T" ,
@@ -367,7 +365,7 @@ function analyzeRuneVariables(
367365 ] ) ;
368366 break ;
369367 }
370- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2811
368+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2513
371369 case "$effect" : {
372370 appendDeclareFunctionVirtualScripts ( globalName , [
373371 "(fn: () => void | (() => void)): void" ,
@@ -379,24 +377,27 @@ function analyzeRuneVariables(
379377 ] ) ;
380378 break ;
381379 }
382- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2913
380+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2615
383381 case "$props" : {
384- appendDeclareFunctionVirtualScripts ( globalName , [ "(): any" ] ) ;
382+ // Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors.
383+ appendDeclareFunctionVirtualScripts ( globalName , [ "<T>(): T" ] ) ;
385384 break ;
386385 }
387- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2924
386+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2626
388387 case "$bindable" : {
389- appendDeclareFunctionVirtualScripts ( globalName , [ "<T>(t?: T): T" ] ) ;
388+ appendDeclareFunctionVirtualScripts ( globalName , [
389+ "<T>(fallback?: T): T" ,
390+ ] ) ;
390391 break ;
391392 }
392- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2944
393+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2646
393394 case "$inspect" : {
394395 appendDeclareFunctionVirtualScripts ( globalName , [
395396 `<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }` ,
396397 ] ) ;
397398 break ;
398399 }
399- // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2967
400+ // See https://github.com/sveltejs/svelte/blob/41b5cd6f5daae3970a9927e062f42b6b62440d16 /packages/svelte/types/index.d.ts#L2669
400401 case "$host" : {
401402 appendDeclareFunctionVirtualScripts ( globalName , [
402403 `<El extends HTMLElement = HTMLElement>(): El` ,
0 commit comments