Skip to content

Commit 85c1426

Browse files
committed
fix: type
1 parent 7b7e8ef commit 85c1426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/typescript/analyze/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ function analyzeRuneVariables(
441441
// See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d/packages/svelte/types/index.d.ts#L3416
442442
case "$props": {
443443
// Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors.
444-
appendDeclareFunctionVirtualScripts(globalName, ["any"]);
444+
appendDeclareFunctionVirtualScripts(globalName, ["(): any"]);
445445
appendDeclareNamespaceVirtualScripts(globalName, [
446446
"export function id(): string;",
447447
]);

0 commit comments

Comments
 (0)