Skip to content

Commit 5c8542e

Browse files
committed
update comment
1 parent 62302ae commit 5c8542e

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
@@ -946,7 +946,7 @@ function transformForReactiveStatement(
946946
}
947947

948948
/**
949-
* Transform for `$derived(expr)` to `$derived((()=>{ return fn(); function fn () { return expr } })())`
949+
* Transform for `$derived(expr)` to `$derived((()=>{ type This = typeof this; return fn(); function fn (this: This) { return expr } })())`
950950
*/
951951
function transformForDollarDerived(
952952
derivedCall: TSESTree.CallExpression,

0 commit comments

Comments
 (0)