Skip to content

Commit 67142a5

Browse files
committed
types
1 parent 93cce4a commit 67142a5

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

packages/svelte/types/index.d.ts

+24-18
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,13 @@ declare module 'svelte/compiler' {
746746
* What the value was initialized with.
747747
* For destructured props such as `let { foo = 'bar' } = $props()` this is `'bar'` and not `$props()`
748748
*/
749-
initial: null | Expression | FunctionDeclaration | ClassDeclaration | ImportDeclaration | EachBlock;
749+
initial:
750+
| null
751+
| Expression
752+
| FunctionDeclaration
753+
| ClassDeclaration
754+
| ImportDeclaration
755+
| EachBlock;
750756
is_called: boolean;
751757
references: { node: Identifier; path: SvelteNode[] }[];
752758
mutated: boolean;
@@ -975,15 +981,15 @@ declare module 'svelte/compiler' {
975981
filename?: string | undefined;
976982
} | undefined): Promise<Processed>;
977983
export class CompileError extends Error {
978-
984+
979985
constructor(code: string, message: string, position: [number, number] | undefined);
980-
986+
981987
filename: CompileError_1['filename'];
982-
988+
983989
position: CompileError_1['position'];
984-
990+
985991
start: CompileError_1['start'];
986-
992+
987993
end: CompileError_1['end'];
988994
code: string;
989995
}
@@ -994,9 +1000,9 @@ declare module 'svelte/compiler' {
9941000
* */
9951001
export const VERSION: string;
9961002
class Scope {
997-
1003+
9981004
constructor(root: ScopeRoot, parent: Scope | null, porous: boolean);
999-
1005+
10001006
root: ScopeRoot;
10011007
/**
10021008
* A map of every identifier declared by this scope, and all the
@@ -1020,25 +1026,25 @@ declare module 'svelte/compiler' {
10201026
* which is usually an error. Block statements do not increase this value
10211027
*/
10221028
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;
10251031
child(porous?: boolean): Scope;
1026-
1032+
10271033
generate(preferred_name: string): string;
1028-
1034+
10291035
get(name: string): Binding | null;
1030-
1036+
10311037
get_bindings(node: import('estree').VariableDeclarator | LetDirective): Binding[];
1032-
1038+
10331039
owner(name: string): Scope | null;
1034-
1040+
10351041
reference(node: import('estree').Identifier, path: SvelteNode[]): void;
10361042
#private;
10371043
}
10381044
class ScopeRoot {
1039-
1045+
10401046
conflicts: Set<string>;
1041-
1047+
10421048
unique(preferred_name: string): import("estree").Identifier;
10431049
}
10441050
interface BaseNode {
@@ -2567,4 +2573,4 @@ declare function $inspect<T extends any[]>(
25672573
...values: T
25682574
): { with: (type: 'init' | 'update', ...values: T) => void };
25692575

2570-
//# sourceMappingURL=index.d.ts.map
2576+
//# sourceMappingURL=index.d.ts.map

0 commit comments

Comments
 (0)