Skip to content

Commit 8622b18

Browse files
fix: Add types to ensure that there will be no compilation errors when struct: false (#1851)
1 parent 449b84c commit 8622b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/Subscription.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function createListenerCollection() {
3434
},
3535

3636
get() {
37-
let listeners = []
37+
let listeners: Listener[] = []
3838
let listener = first
3939
while (listener) {
4040
listeners.push(listener)

0 commit comments

Comments
 (0)