@@ -746,7 +746,13 @@ declare module 'svelte/compiler' {
746
746
* What the value was initialized with.
747
747
* For destructured props such as `let { foo = 'bar' } = $props()` this is `'bar'` and not `$props()`
748
748
*/
749
- initial : null | Expression | FunctionDeclaration | ClassDeclaration | ImportDeclaration | EachBlock ;
749
+ initial :
750
+ | null
751
+ | Expression
752
+ | FunctionDeclaration
753
+ | ClassDeclaration
754
+ | ImportDeclaration
755
+ | EachBlock ;
750
756
is_called : boolean ;
751
757
references : { node : Identifier ; path : SvelteNode [ ] } [ ] ;
752
758
mutated : boolean ;
@@ -975,15 +981,15 @@ declare module 'svelte/compiler' {
975
981
filename ?: string | undefined ;
976
982
} | undefined ) : Promise < Processed > ;
977
983
export class CompileError extends Error {
978
-
984
+
979
985
constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
980
-
986
+
981
987
filename : CompileError_1 [ 'filename' ] ;
982
-
988
+
983
989
position : CompileError_1 [ 'position' ] ;
984
-
990
+
985
991
start : CompileError_1 [ 'start' ] ;
986
-
992
+
987
993
end : CompileError_1 [ 'end' ] ;
988
994
code : string ;
989
995
}
@@ -994,9 +1000,9 @@ declare module 'svelte/compiler' {
994
1000
* */
995
1001
export const VERSION : string ;
996
1002
class Scope {
997
-
1003
+
998
1004
constructor ( root : ScopeRoot , parent : Scope | null , porous : boolean ) ;
999
-
1005
+
1000
1006
root : ScopeRoot ;
1001
1007
/**
1002
1008
* A map of every identifier declared by this scope, and all the
@@ -1020,25 +1026,25 @@ declare module 'svelte/compiler' {
1020
1026
* which is usually an error. Block statements do not increase this value
1021
1027
*/
1022
1028
function_depth : number ;
1023
-
1024
- declare ( node : import ( 'estree' ) . Identifier , kind : Binding [ 'kind' ] , declaration_kind : DeclarationKind , initial ?: null | import ( 'estree' ) . Expression | import ( 'estree' ) . FunctionDeclaration | import ( 'estree' ) . ClassDeclaration | import ( 'estree' ) . ImportDeclaration ) : Binding ;
1029
+
1030
+ declare ( node : import ( 'estree' ) . Identifier , kind : Binding [ 'kind' ] , declaration_kind : DeclarationKind , initial ?: null | import ( 'estree' ) . Expression | import ( 'estree' ) . FunctionDeclaration | import ( 'estree' ) . ClassDeclaration | import ( 'estree' ) . ImportDeclaration | EachBlock ) : Binding ;
1025
1031
child ( porous ?: boolean ) : Scope ;
1026
-
1032
+
1027
1033
generate ( preferred_name : string ) : string ;
1028
-
1034
+
1029
1035
get ( name : string ) : Binding | null ;
1030
-
1036
+
1031
1037
get_bindings ( node : import ( 'estree' ) . VariableDeclarator | LetDirective ) : Binding [ ] ;
1032
-
1038
+
1033
1039
owner ( name : string ) : Scope | null ;
1034
-
1040
+
1035
1041
reference ( node : import ( 'estree' ) . Identifier , path : SvelteNode [ ] ) : void ;
1036
1042
#private;
1037
1043
}
1038
1044
class ScopeRoot {
1039
-
1045
+
1040
1046
conflicts : Set < string > ;
1041
-
1047
+
1042
1048
unique ( preferred_name : string ) : import ( "estree" ) . Identifier ;
1043
1049
}
1044
1050
interface BaseNode {
@@ -2567,4 +2573,4 @@ declare function $inspect<T extends any[]>(
2567
2573
...values : T
2568
2574
) : { with : ( type : 'init' | 'update' , ...values : T ) => void } ;
2569
2575
2570
- //# sourceMappingURL=index.d.ts.map
2576
+ //# sourceMappingURL=index.d.ts.map
0 commit comments