Skip to content

Commit f0cd023

Browse files
jviidemarvinhagemeister
authored andcommitted
Fix .subscribe's type
1 parent 627d837 commit f0cd023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class Signal<T = any> {
123123
};
124124
}
125125

126-
subscribe(fn: (value: T) => () => void) {
126+
subscribe(fn: (value: T) => void): () => void {
127127
return effect(() => fn(this.value));
128128
}
129129

0 commit comments

Comments
 (0)