Skip to content

Commit

Permalink
fix: Add types to ensure that there will be no compilation errors whe…
Browse files Browse the repository at this point in the history
…n struct: false (#1851)
  • Loading branch information
duan602728596 authored Dec 16, 2021
1 parent 449b84c commit 8622b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createListenerCollection() {
},

get() {
let listeners = []
let listeners: Listener[] = []
let listener = first
while (listener) {
listeners.push(listener)
Expand Down

0 comments on commit 8622b18

Please sign in to comment.