@@ -319,7 +319,7 @@ function analyzeRuneVariables(
319
319
continue ;
320
320
}
321
321
switch ( globalName ) {
322
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2585
322
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2646
323
323
case "$state" : {
324
324
appendDeclareFunctionVirtualScripts ( globalName , [
325
325
"<T>(initial: T): T" ,
@@ -332,9 +332,12 @@ function analyzeRuneVariables(
332
332
appendDeclareNamespaceVirtualScripts ( globalName , [
333
333
"export function snapshot<T>(state: T): T;" ,
334
334
] ) ;
335
+ appendDeclareNamespaceVirtualScripts ( globalName , [
336
+ "export function is(a: any, b: any): boolean;" ,
337
+ ] ) ;
335
338
break ;
336
339
}
337
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2648
340
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2751
338
341
case "$derived" : {
339
342
appendDeclareFunctionVirtualScripts ( globalName , [
340
343
"<T>(expression: T): T" ,
@@ -344,36 +347,36 @@ function analyzeRuneVariables(
344
347
] ) ;
345
348
break ;
346
349
}
347
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2687
350
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2811
348
351
case "$effect" : {
349
352
appendDeclareFunctionVirtualScripts ( globalName , [
350
353
"(fn: () => void | (() => void)): void" ,
351
354
] ) ;
352
355
appendDeclareNamespaceVirtualScripts ( globalName , [
353
356
"export function pre(fn: () => void | (() => void)): void;" ,
354
- "export function active (): boolean;" ,
357
+ "export function tracking (): boolean;" ,
355
358
"export function root(fn: () => void | (() => void)): () => void;" ,
356
359
] ) ;
357
360
break ;
358
361
}
359
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2768
362
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2913
360
363
case "$props" : {
361
364
appendDeclareFunctionVirtualScripts ( globalName , [ "(): any" ] ) ;
362
365
break ;
363
366
}
364
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2779
367
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2924
365
368
case "$bindable" : {
366
369
appendDeclareFunctionVirtualScripts ( globalName , [ "<T>(t?: T): T" ] ) ;
367
370
break ;
368
371
}
369
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2799
372
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2944
370
373
case "$inspect" : {
371
374
appendDeclareFunctionVirtualScripts ( globalName , [
372
375
`<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }` ,
373
376
] ) ;
374
377
break ;
375
378
}
376
- // See https://github.com/sveltejs/svelte/blob/bda32edb1a4f2d383d96071750d6bfa9421b2175 /packages/svelte/types/index.d.ts#L2822
379
+ // See https://github.com/sveltejs/svelte/blob/ccb3c90cd57ca9d764efab317ed1cb8e5282926e /packages/svelte/types/index.d.ts#L2967
377
380
case "$host" : {
378
381
appendDeclareFunctionVirtualScripts ( globalName , [
379
382
`<El extends HTMLElement = HTMLElement>(): El` ,
0 commit comments