Closed vedtam closed 5 years ago
Hi guys!
While setting up a new Lit-element + Typescript project, I noticed that connect-mixin won't handle types that I have applied to my redux store.
connect-mixin
store is passed to connect() and it shows the correct types on hover (RootState):
store
connect()
but in the StateChanged(state) callback the type of state is any:
StateChanged(state)
state
any
if I test the state using getState() inside the callback, I get the correct types once again:
getState()
Can someone give a suggestion on how to fix this?
Hi guys!
While setting up a new Lit-element + Typescript project, I noticed that
connect-mixin
won't handle types that I have applied to my redux store.store
is passed toconnect()
and it shows the correct types on hover (RootState):but in the
StateChanged(state)
callback the type ofstate
isany
:if I test the state using
getState()
inside the callback, I get the correct types once again:Can someone give a suggestion on how to fix this?