anycable-client
anycable-client copied to clipboard
The return type for `createCable` is unresolved/any instead of Cable
This is causing type errors in our project when trying to use anycable.
I think you need to import all of the imports from @anycable/core, not export them.
import {
CreateOptions,
Cable,
ActionCableConsumer,
TokenRefresher
} from '@anycable/core'
// is this necessary?
export { CreateOptions, Cable, ActionCableConsumer, TokenRefresher }
Thanks for the report!
It looks like it's gonna be fixed by #38.
I think you need to import all of the imports from @anycable/core, not export them.
We re-export types for usability (so, you can import all you need from the @anycable/web package without event knowing that @anycable/core exists and think about what to import from where).
Should be fixed in v0.9.0. Please, let me no if the problem still there, and we'll reopen it.