Skip to content

Commit d3f638a

Browse files
committed
fix
1 parent e96c12b commit d3f638a

File tree

4 files changed

+1
-52
lines changed

4 files changed

+1
-52
lines changed

src/parser/typescript/analyze/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ function analyzeRuneVariables(
458458
// See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d/packages/svelte/types/index.d.ts#L3502
459459
case "$inspect": {
460460
appendDeclareFunctionVirtualScripts(globalName, [
461-
`<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };`,
461+
`<T extends any[]>(...values: T): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void }`,
462462
]);
463463
appendDeclareNamespaceVirtualScripts(globalName, [
464464
"export function trace(name?: string): void;",

tests/fixtures/parser/ast/svelte5/docs/runes/11-1-$inspect-ts-output.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@
9898
}
9999
},
100100
"body": [
101-
{
102-
"type": "EmptyStatement",
103-
"range": [
104-
21,
105-
21
106-
],
107-
"loc": {
108-
"start": {
109-
"line": 2,
110-
"column": 2
111-
},
112-
"end": {
113-
"line": 2,
114-
"column": 2
115-
}
116-
}
117-
},
118101
{
119102
"type": "VariableDeclaration",
120103
"kind": "let",

tests/fixtures/parser/ast/svelte5/docs/runes/11-2-$inspect-ts-output.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@
9898
}
9999
},
100100
"body": [
101-
{
102-
"type": "EmptyStatement",
103-
"range": [
104-
21,
105-
21
106-
],
107-
"loc": {
108-
"start": {
109-
"line": 2,
110-
"column": 2
111-
},
112-
"end": {
113-
"line": 2,
114-
"column": 2
115-
}
116-
}
117-
},
118101
{
119102
"type": "VariableDeclaration",
120103
"kind": "let",

tests/fixtures/parser/ast/svelte5/docs/runes/11-3-$inspect-ts-output.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,6 @@
9898
}
9999
},
100100
"body": [
101-
{
102-
"type": "EmptyStatement",
103-
"range": [
104-
21,
105-
21
106-
],
107-
"loc": {
108-
"start": {
109-
"line": 2,
110-
"column": 2
111-
},
112-
"end": {
113-
"line": 2,
114-
"column": 2
115-
}
116-
}
117-
},
118101
{
119102
"type": "VariableDeclaration",
120103
"kind": "let",

0 commit comments

Comments
 (0)