We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62302ae commit 5c8542eCopy full SHA for 5c8542e
src/parser/typescript/analyze/index.ts
@@ -946,7 +946,7 @@ function transformForReactiveStatement(
946
}
947
948
/**
949
- * Transform for `$derived(expr)` to `$derived((()=>{ return fn(); function fn () { return expr } })())`
+ * Transform for `$derived(expr)` to `$derived((()=>{ type This = typeof this; return fn(); function fn (this: This) { return expr } })())`
950
*/
951
function transformForDollarDerived(
952
derivedCall: TSESTree.CallExpression,
0 commit comments