Skip to content

Commit 2a0877b

Browse files
committed
regenerate types
1 parent 87bf5ca commit 2a0877b

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

packages/svelte/types/index.d.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -988,15 +988,15 @@ declare module 'svelte/compiler' {
988988
filename?: string | undefined;
989989
} | undefined): Promise<Processed>;
990990
export class CompileError extends Error {
991-
991+
992992
constructor(code: string, message: string, position: [number, number] | undefined);
993-
993+
994994
filename: CompileError_1['filename'];
995-
995+
996996
position: CompileError_1['position'];
997-
997+
998998
start: CompileError_1['start'];
999-
999+
10001000
end: CompileError_1['end'];
10011001
code: string;
10021002
}
@@ -1007,9 +1007,9 @@ declare module 'svelte/compiler' {
10071007
* */
10081008
export const VERSION: string;
10091009
class Scope {
1010-
1010+
10111011
constructor(root: ScopeRoot, parent: Scope | null, porous: boolean);
1012-
1012+
10131013
root: ScopeRoot;
10141014
/**
10151015
* A map of every identifier declared by this scope, and all the
@@ -1033,25 +1033,25 @@ declare module 'svelte/compiler' {
10331033
* which is usually an error. Block statements do not increase this value
10341034
*/
10351035
function_depth: number;
1036-
1036+
10371037
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;
10381038
child(porous?: boolean): Scope;
1039-
1039+
10401040
generate(preferred_name: string): string;
1041-
1041+
10421042
get(name: string): Binding | null;
1043-
1043+
10441044
get_bindings(node: import('estree').VariableDeclarator | LetDirective): Binding[];
1045-
1045+
10461046
owner(name: string): Scope | null;
1047-
1047+
10481048
reference(node: import('estree').Identifier, path: SvelteNode[]): void;
10491049
#private;
10501050
}
10511051
class ScopeRoot {
1052-
1052+
10531053
conflicts: Set<string>;
1054-
1054+
10551055
unique(preferred_name: string): import("estree").Identifier;
10561056
}
10571057
interface BaseNode {
@@ -2463,21 +2463,21 @@ declare function $derived<T>(expression: T): T;
24632463

24642464
declare namespace $derived {
24652465
/**
2466-
* Sometimes you need to create complex derivations which don't fit inside a short expression.
2467-
* In this case, you can resort to `$derived.call` which accepts a function as its argument and returns its value.
2466+
* Sometimes you need to create complex derivations that don't fit inside a short expression.
2467+
* In these cases, you can use `$derived.call` which accepts a function as its argument.
24682468
*
24692469
* Example:
24702470
* ```ts
2471-
* $derived.call(() => {
2472-
* let tmp = count;
2473-
* if (count > 10) {
2474-
* tmp += 100;
2475-
* }
2476-
* return tmp * 2;
2471+
* let total = $derived.call(() => {
2472+
* let result = 0;
2473+
* for (const n of numbers) {
2474+
* result += n;
2475+
* }
2476+
* return result;
24772477
* });
24782478
* ```
24792479
*
2480-
* https://svelte-5-preview.vercel.app/docs/runes#$derived-fn
2480+
* https://svelte-5-preview.vercel.app/docs/runes#$derived-call
24812481
*/
24822482
export function fn<T>(fn: () => T): void;
24832483
}
@@ -2603,4 +2603,4 @@ declare function $inspect<T extends any[]>(
26032603
...values: T
26042604
): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };
26052605

2606-
//# sourceMappingURL=index.d.ts.map
2606+
//# sourceMappingURL=index.d.ts.map

0 commit comments

Comments
 (0)