Skip to content

Commit 112b6b7

Browse files
committed
improve type test for subscribe
1 parent 55b4415 commit 112b6b7

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
@@ -198,7 +198,8 @@ namespace TestSubscribe {
198198
state.count += 1;
199199
};
200200

201-
store.subscribe(handler);
201+
const unsubscribe = store.subscribe(handler);
202+
unsubscribe();
202203
}
203204

204205
namespace TestLogger {

0 commit comments

Comments
 (0)