@@ -350,39 +350,39 @@ declare module 'svelte' {
350
350
* Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
351
351
*
352
352
* */
353
- export function mount < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props , any , any > > | Component < Props , Exports , any > , options : { } extends Props ? {
353
+ export function mount < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
354
354
target : Document | Element | ShadowRoot ;
355
- anchor ?: Node | undefined ;
356
- props ?: Props | undefined ;
357
- events ?: Record < string , ( e : any ) => any > | undefined ;
358
- context ?: Map < any , any > | undefined ;
359
- intro ?: boolean | undefined ;
355
+ anchor ?: Node ;
356
+ props ?: Props ;
357
+ events ?: Record < string , ( e : any ) => any > ;
358
+ context ?: Map < any , any > ;
359
+ intro ?: boolean ;
360
360
} : {
361
361
target : Document | Element | ShadowRoot ;
362
362
props : Props ;
363
- anchor ?: Node | undefined ;
364
- events ?: Record < string , ( e : any ) => any > | undefined ;
365
- context ?: Map < any , any > | undefined ;
366
- intro ?: boolean | undefined ;
363
+ anchor ?: Node ;
364
+ events ?: Record < string , ( e : any ) => any > ;
365
+ context ?: Map < any , any > ;
366
+ intro ?: boolean ;
367
367
} ) : Exports ;
368
368
/**
369
369
* Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component
370
370
*
371
371
* */
372
- export function hydrate < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props , any , any > > | Component < Props , Exports , any > , options : { } extends Props ? {
372
+ export function hydrate < Props extends Record < string , any > , Exports extends Record < string , any > > ( component : ComponentType < SvelteComponent < Props > > | Component < Props , Exports , any > , options : { } extends Props ? {
373
373
target : Document | Element | ShadowRoot ;
374
- props ?: Props | undefined ;
375
- events ?: Record < string , ( e : any ) => any > | undefined ;
376
- context ?: Map < any , any > | undefined ;
377
- intro ?: boolean | undefined ;
378
- recover ?: boolean | undefined ;
374
+ props ?: Props ;
375
+ events ?: Record < string , ( e : any ) => any > ;
376
+ context ?: Map < any , any > ;
377
+ intro ?: boolean ;
378
+ recover ?: boolean ;
379
379
} : {
380
380
target : Document | Element | ShadowRoot ;
381
381
props : Props ;
382
- events ?: Record < string , ( e : any ) => any > | undefined ;
383
- context ?: Map < any , any > | undefined ;
384
- intro ?: boolean | undefined ;
385
- recover ?: boolean | undefined ;
382
+ events ?: Record < string , ( e : any ) => any > ;
383
+ context ?: Map < any , any > ;
384
+ intro ?: boolean ;
385
+ recover ?: boolean ;
386
386
} ) : Exports ;
387
387
/**
388
388
* Unmounts a component that was previously mounted using `mount` or `hydrate`.
@@ -576,8 +576,8 @@ declare module 'svelte/compiler' {
576
576
* https://svelte.dev/docs/svelte-compiler#svelte-parse
577
577
* */
578
578
export function parse ( source : string , options ?: {
579
- filename ?: string | undefined ;
580
- modern ?: false | undefined ;
579
+ filename ?: string ;
580
+ modern ?: false ;
581
581
} | undefined ) : LegacyRoot ;
582
582
/**
583
583
* @deprecated Replace this with `import { walk } from 'estree-walker'`
@@ -1108,18 +1108,18 @@ declare module 'svelte/compiler' {
1108
1108
* https://svelte.dev/docs/svelte-compiler#svelte-preprocess
1109
1109
* */
1110
1110
export function preprocess ( source : string , preprocessor : PreprocessorGroup | PreprocessorGroup [ ] , options ?: {
1111
- filename ?: string | undefined ;
1111
+ filename ?: string ;
1112
1112
} | undefined ) : Promise < Processed > ;
1113
1113
export class CompileError extends Error {
1114
1114
1115
1115
constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
1116
1116
filename : string | undefined ;
1117
1117
1118
- position : CompileError_1 [ ' position' ] ;
1118
+ position : CompileError_1 [ " position" ] ;
1119
1119
1120
- start : CompileError_1 [ ' start' ] ;
1120
+ start : CompileError_1 [ " start" ] ;
1121
1121
1122
- end : CompileError_1 [ ' end' ] ;
1122
+ end : CompileError_1 [ " end" ] ;
1123
1123
code : string ;
1124
1124
}
1125
1125
/**
@@ -1153,13 +1153,13 @@ declare module 'svelte/compiler' {
1153
1153
/**
1154
1154
* A map of declarators to the bindings they declare
1155
1155
* */
1156
- declarators : Map < import ( ' estree' ) . VariableDeclarator | LetDirective , Binding [ ] > ;
1156
+ declarators : Map < import ( " estree" ) . VariableDeclarator | LetDirective , Binding [ ] > ;
1157
1157
/**
1158
1158
* A set of all the names referenced with this scope
1159
1159
* — useful for generating unique names
1160
1160
* */
1161
1161
references : Map < string , {
1162
- node : import ( ' estree' ) . Identifier ;
1162
+ node : import ( " estree" ) . Identifier ;
1163
1163
path : SvelteNode [ ] ;
1164
1164
} [ ] > ;
1165
1165
/**
@@ -1168,18 +1168,18 @@ declare module 'svelte/compiler' {
1168
1168
*/
1169
1169
function_depth : number ;
1170
1170
1171
- 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 ;
1171
+ 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 ;
1172
1172
child ( porous ?: boolean ) : Scope ;
1173
1173
1174
1174
generate ( preferred_name : string ) : string ;
1175
1175
1176
1176
get ( name : string ) : Binding | null ;
1177
1177
1178
- get_bindings ( node : import ( ' estree' ) . VariableDeclarator | LetDirective ) : Binding [ ] ;
1178
+ get_bindings ( node : import ( " estree" ) . VariableDeclarator | LetDirective ) : Binding [ ] ;
1179
1179
1180
1180
owner ( name : string ) : Scope | null ;
1181
1181
1182
- reference ( node : import ( ' estree' ) . Identifier , path : SvelteNode [ ] ) : void ;
1182
+ reference ( node : import ( " estree" ) . Identifier , path : SvelteNode [ ] ) : void ;
1183
1183
#private;
1184
1184
}
1185
1185
class ScopeRoot {
@@ -2006,18 +2006,18 @@ declare module 'svelte/legacy' {
2006
2006
*
2007
2007
* */
2008
2008
export function createClassComponent < Props extends Record < string , any > , Exports extends Record < string , any > , Events extends Record < string , any > , Slots extends Record < string , any > > ( options : import ( "svelte" ) . ComponentConstructorOptions < Props > & {
2009
- component : import ( "svelte" ) . ComponentType < import ( "svelte" ) . SvelteComponent < Props , Events , Slots > > | import ( "svelte" ) . Component < Props , any , string > ;
2010
- immutable ?: boolean | undefined ;
2011
- hydrate ?: boolean | undefined ;
2012
- recover ?: boolean | undefined ;
2009
+ component : import ( "svelte" ) . ComponentType < import ( "svelte" ) . SvelteComponent < Props , Events , Slots > > | import ( "svelte" ) . Component < Props > ;
2010
+ immutable ?: boolean ;
2011
+ hydrate ?: boolean ;
2012
+ recover ?: boolean ;
2013
2013
} ) : import ( "svelte" ) . SvelteComponent < Props , Events , Slots > & Exports ;
2014
2014
/**
2015
2015
* Takes the component function and returns a Svelte 4 compatible component constructor.
2016
2016
*
2017
2017
* @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.
2018
2018
*
2019
2019
* */
2020
- export function asClassComponent < Props extends Record < string , any > , Exports extends Record < string , any > , Events extends Record < string , any > , Slots extends Record < string , any > > ( component : import ( "svelte" ) . SvelteComponent < Props , Events , Slots > | import ( "svelte" ) . Component < Props , any , string > ) : import ( "svelte" ) . ComponentType < import ( "svelte" ) . SvelteComponent < Props , Events , Slots > & Exports > ;
2020
+ export function asClassComponent < Props extends Record < string , any > , Exports extends Record < string , any > , Events extends Record < string , any > , Slots extends Record < string , any > > ( component : import ( "svelte" ) . SvelteComponent < Props , Events , Slots > | import ( "svelte" ) . Component < Props > ) : import ( "svelte" ) . ComponentType < import ( "svelte" ) . SvelteComponent < Props , Events , Slots > & Exports > ;
2021
2021
/**
2022
2022
* Runs the given function once immediately on the server, and works like `$effect.pre` on the client.
2023
2023
*
0 commit comments