@ -988,15 +988,15 @@ declare module 'svelte/compiler' {
filename? : string | undefined ;
filename? : string | undefined ;
} | undefined ) : Promise < Processed > ;
} | undefined ) : Promise < Processed > ;
export class CompileError extends Error {
export class CompileError extends Error {
constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
filename : CompileError_1 [ 'filename' ] ;
filename : CompileError_1 [ 'filename' ] ;
position : CompileError_1 [ 'position' ] ;
position : CompileError_1 [ 'position' ] ;
start : CompileError_1 [ 'start' ] ;
start : CompileError_1 [ 'start' ] ;
end : CompileError_1 [ 'end' ] ;
end : CompileError_1 [ 'end' ] ;
code : string ;
code : string ;
}
}
@ -1007,9 +1007,9 @@ declare module 'svelte/compiler' {
* * /
* * /
export const VERSION : string ;
export const VERSION : string ;
class Scope {
class Scope {
constructor ( root : ScopeRoot , parent : Scope | null , porous : boolean ) ;
constructor ( root : ScopeRoot , parent : Scope | null , porous : boolean ) ;
root : ScopeRoot ;
root : ScopeRoot ;
/ * *
/ * *
* A map of every identifier declared by this scope , and all the
* A map of every identifier declared by this scope , and all the
@ -1033,25 +1033,25 @@ declare module 'svelte/compiler' {
* which is usually an error . Block statements do not increase this value
* which is usually an error . Block statements do not increase this value
* /
* /
function_depth : number ;
function_depth : number ;
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 ;
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 ;
child ( porous? : boolean ) : Scope ;
child ( porous? : boolean ) : Scope ;
generate ( preferred_name : string ) : string ;
generate ( preferred_name : string ) : string ;
get ( name : string ) : Binding | null ;
get ( name : string ) : Binding | null ;
get_bindings ( node : import ( 'estree' ) . VariableDeclarator | LetDirective ) : Binding [ ] ;
get_bindings ( node : import ( 'estree' ) . VariableDeclarator | LetDirective ) : Binding [ ] ;
owner ( name : string ) : Scope | null ;
owner ( name : string ) : Scope | null ;
reference ( node : import ( 'estree' ) . Identifier , path : SvelteNode [ ] ) : void ;
reference ( node : import ( 'estree' ) . Identifier , path : SvelteNode [ ] ) : void ;
# private ;
# private ;
}
}
class ScopeRoot {
class ScopeRoot {
conflicts : Set < string > ;
conflicts : Set < string > ;
unique ( preferred_name : string ) : import ( "estree" ) . Identifier ;
unique ( preferred_name : string ) : import ( "estree" ) . Identifier ;
}
}
interface BaseNode {
interface BaseNode {
@ -2464,11 +2464,11 @@ declare function $derived<T>(expression: T): T;
declare namespace $derived {
declare namespace $derived {
/ * *
/ * *
* Sometimes you need to create complex derivations which don ' t fit inside a short expression .
* Sometimes you need to create complex derivations which don ' t fit inside a short expression .
* In this case , you can resort to ` $ derived. fn ` which accepts a function as its argument and returns its value .
* In this case , you can resort to ` $ derived. call ` which accepts a function as its argument and returns its value .
*
*
* Example :
* Example :
* ` ` ` ts
* ` ` ` ts
* $derived . fn ( ( ) = > {
* $derived . call ( ( ) = > {
* let tmp = count ;
* let tmp = count ;
* if ( count > 10 ) {
* if ( count > 10 ) {
* tmp += 100 ;
* tmp += 100 ;
@ -2603,4 +2603,4 @@ declare function $inspect<T extends any[]>(
. . . values : T
. . . values : T
) : { with : ( fn : ( type : 'init' | 'update' , . . . values : T ) = > void ) = > void } ;
) : { with : ( fn : ( type : 'init' | 'update' , . . . values : T ) = > void ) = > void } ;
//# sourceMappingURL=index.d.ts.map
//# sourceMappingURL=index.d.ts.map