Skip to content

Commit 72f05a3

Browse files
committed
types: scope.run typing
1 parent 160412b commit 72f05a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/effectScope.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class EffectScope {
1515
}
1616
}
1717

18-
run(fn: () => any) {
18+
run<T>(fn: () => T): T | undefined {
1919
if (this.active) {
2020
try {
2121
effectScopeStack.push(this)

0 commit comments

Comments
 (0)