Skip to content

Commit a1628b4

Browse files
committed
fix
1 parent 13a92c7 commit a1628b4

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

Diff for: src/parser/typescript/analyze/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function analyzeRuneVariables(
343343
}
344344
case "$inspect": {
345345
appendDeclareFunctionVirtualScripts(globalName, [
346-
`<T>(value: T, callback?: (value: T, type: 'init' | 'update') => void): void;`,
346+
`<T>(value: T, callback?: (value: T, type: 'init' | 'update') => void): void`,
347347
]);
348348
break;
349349
}

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

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

0 commit comments

Comments
 (0)