Skip to content

Commit 8130c4f

Browse files
committed
improve type test for subscribe
1 parent 6c669a5 commit 8130c4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/test/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ namespace TestSubscribe {
176176
state.count += 1;
177177
};
178178

179-
store.subscribe(handler);
179+
const unsubscribe = store.subscribe(handler);
180+
unsubscribe();
180181
}
181182

182183
namespace TestLogger {

0 commit comments

Comments
 (0)